Example #1
0
        public Trakt_WatchedEpisodeVM(JMMServerBinary.Contract_Trakt_WatchedEpisode contract)
        {
            this.Trakt_EpisodeID = contract.Trakt_EpisodeID;

            this.Watched        = contract.Watched;
            this.WatchedDate    = contract.WatchedDate;
            this.Episode_Season = contract.Episode_Season;
            this.Episode_Number = contract.Episode_Number;
            this.Episode_Title  = contract.Episode_Title;

            if (!string.IsNullOrEmpty(Episode_Title) && Episode_Title.Length > 30)
            {
                Episode_Title = Episode_Title.Substring(0, 30) + "...";
            }

            this.Episode_Overview   = contract.Episode_Overview;
            this.Episode_Url        = contract.Episode_Url;
            this.Episode_Screenshot = contract.Episode_Screenshot;
            //this.Episode_Screenshot = "/Images/16_Refresh.png";
            this.AnimeSeriesID = contract.AnimeSeriesID;

            if (contract.TraktShow != null)
            {
                this.TraktShow = new TraktTVShowResponseVM(contract.TraktShow);
            }

            if (contract.Anime != null)
            {
                this.Anime = new AniDB_AnimeVM(contract.Anime);
            }

            Console.Write(this.FullImagePath);
            Console.Write(this.OnlineImagePath);
            Console.Write(this.ImagePathForDisplay);
        }
Example #2
0
        public Trakt_CommentVM(JMMServerBinary.Contract_Trakt_Comment contract)
        {
            this.CommentType = contract.CommentType;
            this.Text        = contract.Text;
            this.Spoiler     = contract.Spoiler;
            this.Inserted    = contract.Inserted;

            this.Comment_Url = contract.Comment_Url;

            this.Episode_Season = contract.Episode_Season;
            this.Episode_Number = contract.Episode_Number;
            this.Episode_Title  = contract.Episode_Title;

            if (!string.IsNullOrEmpty(Episode_Title) && Episode_Title.Length > 30)
            {
                Episode_Title = Episode_Title.Substring(0, 30) + "...";
            }

            this.Episode_Overview   = contract.Episode_Overview;
            this.Episode_Url        = contract.Episode_Url;
            this.Episode_Screenshot = contract.Episode_Screenshot;
            this.AnimeSeriesID      = contract.AnimeSeriesID;

            if (contract.TraktShow != null)
            {
                this.TraktShow = new TraktTVShowResponseVM(contract.TraktShow);
            }

            if (contract.Anime != null)
            {
                this.Anime = new AniDB_AnimeVM(contract.Anime);
            }

            Console.Write(this.FullImagePath);
            Console.Write(this.OnlineImagePath);
            Console.Write(this.ImagePathForDisplay);

            //this.Text = "Sora asks Haru to take her measurements so she can have a uniform made. The next day Nao comes over to bring Haruka some mosquito repellent, since Sora is scared of mosquitoes, and then leaves almost immediately. The next day Ryouhei invites Haruka to the school rooftop to take a peek at the girls cleaning the pool. Haruka warns Ryouhei, though, not to peek at Nao, and leaves. Much later Ryouhei tells Nao that Haruka, “the prince she has been waiting for,” has a crush on her; but she thinks he does not like her. The truth is that something happened between the two many summers ago: Nao, trying to escape the noise of her arguing parents, ran to Haruka's house. At that time Haruka was sleeping at their veranda, and was surprised to see Nao on top of him with her clothes undone. Until now Nao feels guilty for what she did. However, Ryouhei, even Akira and Kazuha, is into the act of bringing Haruka and Nao together. They did so by making the two meet at school pool on a Sunday. When they were changing after the swimming lesson, Haruka rushes into the girls' locker room when Nao was scared by a black cat inside a box. The school supervisor hears their chatter, but the two were able to hide inside a box before he catches them. Thinking it was just the cat, he leaves. There, Nao gets to know that Haruka does not hate her, only that he was just surprised at the events of that summer day, dispelling her assumptions. Meanwhile, Sora shows her hatred of Nao, whom she thinks is the reason why Haruka has been preoccupied the past couple of days, at home on her laptop.";
        }