omdb init
This commit is contained in:
24
Services/OmdbService.cs
Normal file
24
Services/OmdbService.cs
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user