public MangaRate(MangaRate rate, _UserRate_v2 rate_upd) : base(rate, rate_upd) { TotalVolumes = rate.TotalVolumes; TotalChapters = rate.TotalChapters; CompletedVolumes = rate_upd.volumes; CompletedChapters = rate_upd.chapters; }
/// <include file='Docs/ExternalSummary.xml' path='docs/ShikiApiStatic/method[@name="GetTitleType2"]/*' /> public static TitleType GetTitleType(_UserRate_v2 rate) { if (rate.target_type == "Anime") { return(TitleType.anime); } if (rate.target_type == "Manga") { return(TitleType.manga); } return((TitleType)(-1)); }
public TitleRate(TitleRate rate, _UserRate_v2 rate_upd) { UserRateId = rate.UserRateId; TitleId = rate.TitleId; Name = rate.Name; RusName = rate.RusName; Poster = rate.Poster; Url = rate.Url; Kind = rate.Kind; TitleStatus = rate.TitleStatus; AiredOn = rate.AiredOn; ReleasedOn = rate.ReleasedOn; UserStatus = rate_upd.status; Score = rate_upd.score; }
public AnimeRate(_UserRate_v2 rate_upd) { CompletedEpisodes = rate_upd.episodes; UserStatus = rate_upd.status; Score = rate_upd.score; UserRateId = rate_upd.id; TitleId = rate_upd.target_id; var title = ShikiApiStatic.GetAnimeFullInfo(TitleId); Name = title.Name; RusName = title.RusName; Poster = title.Poster; Url = title.Url; Kind = title.Kind; TitleStatus = title.TitleStatus; AiredOn = title.AiredOn; ReleasedOn = title.ReleasedOn; TotalEpisodes = title.TotalEpisodes; AiredEpisodes = title.AiredEpisodes; }
public MangaRate(_UserRate_v2 rate_upd) { CompletedVolumes = rate_upd.volumes; CompletedChapters = rate_upd.chapters; UserStatus = rate_upd.status; Score = rate_upd.score; UserRateId = rate_upd.id; TitleId = rate_upd.target_id; var title = ShikiApiStatic.GetMangaFullInfo(TitleId); Name = title.Name; RusName = title.RusName; Poster = title.Poster; Url = title.Url; Kind = title.Kind; TitleStatus = title.TitleStatus; AiredOn = title.AiredOn; ReleasedOn = title.ReleasedOn; TotalVolumes = title.TotalVolumes; TotalChapters = title.TotalChapters; }
public AnimeRate(AnimeRate rate, _UserRate_v2 rate_upd) : base(rate, rate_upd) { TotalEpisodes = rate.TotalEpisodes; AiredEpisodes = rate.AiredEpisodes; CompletedEpisodes = rate_upd.episodes; }