Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 /// <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));
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
 public AnimeRate(AnimeRate rate, _UserRate_v2 rate_upd) : base(rate, rate_upd)
 {
     TotalEpisodes     = rate.TotalEpisodes;
     AiredEpisodes     = rate.AiredEpisodes;
     CompletedEpisodes = rate_upd.episodes;
 }