コード例 #1
0
ファイル: GeneralHelpers.cs プロジェクト: fronn/FilmTrove
 public static void FillBasicPerson(FilmTrove.Models.Person person, FlixSharp.Holders.Person nperson)
 {
     person.Netflix.Id = nperson.Id;
     person.Netflix.NeedsUpdate = true;
     person.Netflix.IdUrl = nperson.IdUrl;
     person.Netflix.Url = nperson.NetflixSiteUrl;
     person.Bio = nperson.Bio;
     person.Name = nperson.Name;
 }
コード例 #2
0
ファイル: GeneralHelpers.cs プロジェクト: fronn/FilmTrove
 public static void FillBasicTitle(FilmTrove.Models.Movie movie, FlixSharp.Holders.Title ntitle)
 {
     movie.Netflix.Id = ntitle.Id;
     movie.Netflix.IdUrl = ntitle.IdUrl;
     movie.Netflix.SeasonId = ntitle.SeasonId;
     movie.Netflix.Url = ntitle.NetflixSiteUrl;
     movie.Netflix.AvgRating = ntitle.AverageRating;
     movie.Netflix.OfficialWebsiteUrl = ntitle.OfficialWebsite;
     movie.Netflix.PosterUrlLarge = ntitle.BoxArtUrlLarge;
     movie.Netflix.NeedsUpdate = true;
     movie.Rating = ntitle.Rating.RatingType == RatingType.Mpaa ?
         ntitle.Rating.MpaaRating.ToString() : ntitle.Rating.TvRating.ToString();
     movie.RatingType = ntitle.Rating.RatingType;
     movie.AltTitle = ntitle.ShortTitle;
     movie.Title = ntitle.FullTitle;
     movie.BestPosterUrl = ntitle.BoxArtUrlLarge;
     movie.Year = ntitle.Year;
 }