Exemplo n.º 1
0
        public void Populate(JMMServerBinary.Contract_AnimeRating contract)
        {
            this.AnimeID       = contract.AnimeID;
            this.AnimeDetailed = new AniDB_AnimeDetailedVM();
            this.AnimeDetailed.Populate(contract.AnimeDetailed, AnimeID);
            if (contract.AnimeSeries != null)
            {
                this.AnimeSeries = new AnimeSeriesVM(contract.AnimeSeries);
            }

            AnimeName  = AnimeDetailed.AniDB_Anime.MainTitle;
            Rating     = String.Format("{0:0.00}", AnimeDetailed.AniDB_Anime.AniDBRating);
            UserRating = AnimeDetailed.UserRating;
            Year       = AnimeDetailed.AniDB_Anime.BeginYear;
        }
Exemplo n.º 2
0
 public AnimeRatingVM(JMMServerBinary.Contract_AnimeRating contract)
 {
     Populate(contract);
 }