//----------------------------------------------------------------// public async Task <MovieDto> LoadMovie(string movieId) { string url = UrlHelper.AddTerm($"{TmdbAPIUrl}movie", movieId); url = UrlHelper.AddParam(url, ApiKeyParam); string json = await GeneralLoadDataHelper.GetMessageAsString(url); IJSONFormatter formatter = new MovieJSONFormatter(); return(formatter.Deserialize <MovieDto>(json)); }
//----------------------------------------------------------------// public async Task <PeopleDto> LoadPeople(string peopleId) { string url = UrlHelper.AddTerm($"{TmdbAPIUrl}person", peopleId); url = UrlHelper.AddParam(url, ApiKeyParam); string json = await GeneralLoadDataHelper.GetMessageAsString(url); IJSONFormatter formatter = new GeneralJSONFormatter(); return(formatter.Deserialize <PeopleDto>(json)); }
//----------------------------------------------------------------// public async Task <ProductionCompanyDto> LoadCompany(string companyId) { string url = UrlHelper.AddTerm($"{TmdbAPIUrl}/company/", companyId); url = UrlHelper.AddParam(url, ApiKeyParam); string json = await GeneralLoadDataHelper.GetMessageAsString(url); IJSONFormatter formatter = new GeneralJSONFormatter(); return(formatter.Deserialize <ProductionCompanyDto>(json)); }