omdb init

This commit is contained in:
2026-01-19 17:45:01 +01:00
parent 34aef8b8bc
commit 1cce273057
3 changed files with 37 additions and 1 deletions

24
Services/OmdbService.cs Normal file
View File

@@ -0,0 +1,24 @@
class OmdbService
{
private readonly string url;
public OmdbService()
{
var apiKey = File.ReadAllText("APIKey.txt").Trim();
apiKey = System.Net.WebUtility.UrlEncode(apiKey);
url = "http://www.omdbapi.com/?apikey=" + apiKey + "&";
}
public async void FetchMovieDetail(string id)
{
// TODO
}
public async void FetchMovies(string searchTitle)
{
// TODO
}
}