예제 #1
0
 /// <include file='Docs/ExternalSummary.xml' path='docs/ShikiApiStatic/method[@name="GetTitleType1"]/*' />
 public static TitleType GetTitleType(_UserRate rate)
 {
     if (rate.anime != null)
     {
         return(TitleType.anime);
     }
     if (rate.manga != null)
     {
         return(TitleType.manga);
     }
     return((TitleType)(-1));
 }
예제 #2
0
        public AnimeRate(_UserRate rate)
        {
            UserRateId  = rate.id;
            UserStatus  = rate.status;
            Score       = rate.score;
            TitleId     = rate.anime.TitleId;
            Name        = rate.anime.Name;
            RusName     = rate.anime.RusName;
            Poster      = rate.anime.Poster;
            Url         = rate.anime.Url;
            Kind        = rate.anime.Kind;
            TitleStatus = rate.anime.TitleStatus;
            AiredOn     = rate.anime.AiredOn;
            ReleasedOn  = rate.anime.ReleasedOn;

            TotalEpisodes     = rate.anime.TotalEpisodes;
            AiredEpisodes     = rate.anime.AiredEpisodes;
            CompletedEpisodes = (rate.episodes != null) ? (int)rate.episodes : 0;
        }
예제 #3
0
        public MangaRate(_UserRate rate)
        {
            UserRateId  = rate.id;
            UserStatus  = rate.status;
            Score       = rate.score;
            TitleId     = rate.manga.TitleId;
            Name        = rate.manga.Name;
            RusName     = rate.manga.RusName;
            Poster      = rate.manga.Poster;
            Url         = rate.manga.Url;
            Kind        = rate.manga.Kind;
            TitleStatus = rate.manga.TitleStatus;
            AiredOn     = rate.manga.AiredOn;
            ReleasedOn  = rate.manga.ReleasedOn;

            TotalVolumes      = rate.manga.TotalVolumes;
            TotalChapters     = rate.manga.TotalChapters;
            CompletedVolumes  = (rate.volumes != null) ? (int)rate.volumes  : 0;
            CompletedChapters = (rate.chapters != null) ? (int)rate.chapters : 0;
        }