Ejemplo n.º 1
0
 public FileFfdshowPresetVM(JMMServerBinary.Contract_FileFfdshowPreset contract)
 {
     this.FileFfdshowPresetID = contract.FileFfdshowPresetID;
     this.Hash = contract.Hash;
     this.FileSize = contract.FileSize;
     this.Preset = contract.Preset;
 }
Ejemplo n.º 2
0
		public Trakt_FriendVM(JMMServerBinary.Contract_Trakt_Friend contract)
		{
			WatchedEpisodes = new List<Trakt_WatchedEpisodeVM>();

			this.Trakt_FriendID = contract.Trakt_FriendID;
			this.Username = contract.Username;
			this.Full_name = contract.Full_name;
			this.Gender = contract.Gender;
			this.Age = contract.Age;
			this.Location = contract.Location;
			this.About = contract.About;
			this.Joined = contract.Joined;
			this.JoinedDate = contract.JoinedDate;
			this.Avatar = contract.Avatar;
			//this.Avatar = "/Images/16_Refresh.png";
			this.Url = contract.Url;

			

			foreach (JMMServerBinary.Contract_Trakt_WatchedEpisode ep in contract.WatchedEpisodes)
				WatchedEpisodes.Add(new Trakt_WatchedEpisodeVM(ep));

			LastEpisodeWatched = null;
			LastEpisodeWatchedDate = null;
			if (WatchedEpisodes.Count > 0)
			{
				LastEpisodeWatched = WatchedEpisodes[0];
				LastEpisodeWatchedDate = LastEpisodeWatched.WatchedDate;
			}
		}
Ejemplo n.º 3
0
        public MissingFileVM(JMMServerBinary.Contract_MissingFile contract)
        {
            this.EpisodeID = contract.EpisodeID;
            this.FileID = contract.FileID;
            this.AnimeID = contract.AnimeID;
            this.AnimeTitle = contract.AnimeTitle;
            this.EpisodeNumber = contract.EpisodeNumber;
            this.EpisodeType = contract.EpisodeType;

            AnimeSeries = null;
            if (contract.AnimeSeries != null) AnimeSeries = new AnimeSeriesVM(contract.AnimeSeries);

            HasSeriesData = AnimeSeries != null;

            string shortType = "";
            switch (EpisodeTypeEnum)
            {
                case JMMClient.EpisodeType.Credits: shortType = "C"; break;
                case JMMClient.EpisodeType.Episode: shortType = ""; break;
                case JMMClient.EpisodeType.Other: shortType = "O"; break;
                case JMMClient.EpisodeType.Parody: shortType = "P"; break;
                case JMMClient.EpisodeType.Special: shortType = "S"; break;
                case JMMClient.EpisodeType.Trailer: shortType = "T"; break;
            }
            EpisodeTypeAndNumber = string.Format("{0}{1}", shortType, EpisodeNumber);
        }
Ejemplo n.º 4
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.";
        }
Ejemplo n.º 5
0
		public LogMessageVM(JMMServerBinary.Contract_LogMessage contract)
		{
			this.LogMessageID = contract.LogMessageID;
			this.LogType = contract.LogType;
			this.LogContent = contract.LogContent;
			this.LogDate = contract.LogDate;
		}
Ejemplo n.º 6
0
 public AnimeTitleVM(JMMServerBinary.Contract_AnimeTitle contract)
 {
     this.AnimeID = contract.AnimeID;
     this.TitleType = contract.TitleType;
     this.Language = contract.Language;
     this.Title = contract.Title;
 }
 public MovieDBMovieSearchResultVM(JMMServerBinary.Contract_MovieDBMovieSearchResult contract)
 {
     this.MovieID = contract.MovieID;
     this.MovieName = contract.MovieName;
     this.OriginalName = contract.OriginalName;
     this.Overview = contract.Overview;
 }
Ejemplo n.º 8
0
        public PlaylistVM(JMMServerBinary.Contract_Playlist contract)
        {
            PlaylistObjects = new ObservableCollection<PlaylistItemVM>();

            Populate(contract);
            //PopulatePlaylistObjects();
        }
 public VideoLocalRenamedVM(JMMServerBinary.Contract_VideoLocalRenamed contract)
 {
     this.VideoLocalID = contract.VideoLocalID;
     this.NewFileName = contract.NewFileName;
     this.VideoLocal = new VideoLocalVM(contract.VideoLocal);
     this.Success = contract.Success;
 }
 public AniDBReleaseGroupVM(JMMServerBinary.Contract_AniDBReleaseGroup contract)
 {
     this.GroupID = contract.GroupID;
     this.GroupName = contract.GroupName;
     this.UserCollecting = contract.UserCollecting;
     this.FileCount = contract.FileCount;
 }
 public CrossRef_AniDB_TvDBEpisodeVM(JMMServerBinary.Contract_CrossRef_AniDB_TvDB_Episode contract)
 {
     this.AnimeID = contract.AnimeID;
     this.AniDBEpisodeID = contract.AniDBEpisodeID;
     this.CrossRef_AniDB_TvDB_EpisodeID = contract.CrossRef_AniDB_TvDB_EpisodeID;
     this.TvDBEpisodeID = contract.TvDBEpisodeID;
 }
Ejemplo n.º 12
0
        public GroupFilterExtendedVM(JMMServerBinary.Contract_GroupFilterExtended contract)
        {
            this.GroupFilter = new GroupFilterVM(contract.GroupFilter);

            SeriesCount = contract.SeriesCount;
            GroupCount = contract.GroupCount;
        }
Ejemplo n.º 13
0
 public AdminMessage(JMMServerBinary.Contract_AdminMessage contract)
 {
     AdminMessageId = contract.AdminMessageId;
     MessageDate = contract.MessageDate;
     MessageType = contract.MessageType;
     Message = contract.Message;
     MessageURL = contract.MessageURL;
 }
Ejemplo n.º 14
0
		public CrossRef_AniDB_TvDBVM(JMMServerBinary.Contract_CrossRef_AniDB_TvDB contract)
		{
			this.AnimeID = contract.AnimeID;
			this.TvDBID = contract.TvDBID;
			this.CrossRef_AniDB_TvDBID = contract.CrossRef_AniDB_TvDBID;
			this.TvDBSeasonNumber = contract.TvDBSeasonNumber;
			this.CrossRefSource = contract.CrossRefSource;
		}
Ejemplo n.º 15
0
 public Trakt_ImageFanartVM(JMMServerBinary.Contract_Trakt_ImageFanart contract)
 {
     this.Trakt_ImageFanartID = contract.Trakt_ImageFanartID;
     this.Trakt_ShowID = contract.Trakt_ShowID;
     this.Season = contract.Season;
     this.ImageURL = contract.ImageURL;
     this.Enabled = contract.Enabled;
 }
Ejemplo n.º 16
0
 public CrossRef_AniDB_OtherVM(JMMServerBinary.Contract_CrossRef_AniDB_Other contract)
 {
     this.CrossRef_AniDB_OtherID = contract.CrossRef_AniDB_OtherID;
     this.AnimeID = contract.AnimeID;
     this.CrossRefID = contract.CrossRefID;
     this.CrossRefSource = contract.CrossRefSource;
     this.CrossRefType = contract.CrossRefType;
 }
Ejemplo n.º 17
0
		public CrossRef_AniDB_TraktResultVM(JMMServerBinary.Contract_CrossRef_AniDB_TraktResult contract)
		{
			this.AnimeID = contract.AnimeID;
			this.TraktID = contract.TraktID;
			this.TraktSeasonNumber = contract.TraktSeasonNumber;
			this.AdminApproved = contract.AdminApproved;
			this.ShowName = contract.ShowName;
		}
Ejemplo n.º 18
0
 public MovieDB_MovieVM(JMMServerBinary.Contract_MovieDB_Movie contract)
 {
     this.MovieDB_MovieID = contract.MovieDB_MovieID;
     this.MovieId = contract.MovieId;
     this.MovieName = contract.MovieName;
     this.OriginalName = contract.OriginalName;
     this.Overview = contract.Overview;
 }
Ejemplo n.º 19
0
 public AniDB_RecommendationVM(JMMServerBinary.Contract_AniDB_Recommendation contract)
 {
     this.AniDB_RecommendationID = contract.AniDB_RecommendationID;
     this.AnimeID = contract.AnimeID;
     this.UserID = contract.UserID;
     this.RecommendationType = contract.RecommendationType;
     this.RecommendationText = contract.RecommendationText;
 }
Ejemplo n.º 20
0
 public CrossRef_AniDB_TraktVM(JMMServerBinary.Contract_CrossRef_AniDB_Trakt contract)
 {
     this.CrossRef_AniDB_TraktID = contract.CrossRef_AniDB_TraktID;
     this.AnimeID = contract.AnimeID;
     this.TraktID = contract.TraktID;
     this.TraktSeasonNumber = contract.TraktSeasonNumber;
     this.CrossRefSource = contract.CrossRefSource;
 }
Ejemplo n.º 21
0
		public TVDBSeriesSearchResultVM(JMMServerBinary.Contract_TVDBSeriesSearchResult contract)
		{
			this.Id = contract.Id;
			this.SeriesID = contract.SeriesID;
			this.Overview = contract.Overview;
			this.SeriesName = contract.SeriesName;
			this.Banner = contract.Banner;
			this.Language = contract.Language;
		}
 public CrossRef_AniDB_TraktEpisodeVM(JMMServerBinary.Contract_CrossRef_AniDB_Trakt_Episode contract)
 {
     this.AnimeID = contract.AnimeID;
     this.AniDBEpisodeID = contract.AniDBEpisodeID;
     this.CrossRef_AniDB_Trakt_EpisodeID = contract.CrossRef_AniDB_Trakt_EpisodeID;
     this.TraktID = contract.TraktID;
     this.Season = contract.Season;
     this.EpisodeNumber = contract.EpisodeNumber;
 }
Ejemplo n.º 23
0
        public AniDB_SeiyuuVM(JMMServerBinary.Contract_AniDB_Seiyuu details)
        {
            if (details == null) return;

            this.AniDB_SeiyuuID = details.AniDB_SeiyuuID;
            this.SeiyuuID = details.SeiyuuID;
            this.SeiyuuName = details.SeiyuuName;
            this.PicName = details.PicName;
        }
Ejemplo n.º 24
0
 public GroupFilterConditionVM(JMMServerBinary.Contract_GroupFilterCondition contract)
 {
     // read only members
     this.GroupFilterConditionID = contract.GroupFilterConditionID;
     this.GroupFilterID = contract.GroupFilterID;
     this.ConditionOperator = contract.ConditionOperator;
     this.ConditionParameter = contract.ConditionParameter;
     this.ConditionType = contract.ConditionType;
 }
Ejemplo n.º 25
0
		public CrossRef_AniDB_MALResultVM(JMMServerBinary.Contract_CrossRef_AniDB_MALResult contract)
		{
			this.AnimeID = contract.AnimeID;
			this.MALID = contract.MALID;
			this.CrossRefSource = contract.CrossRefSource;
			this.MALTitle = contract.MALTitle;
			this.StartEpisodeType = contract.StartEpisodeType;
			this.StartEpisodeNumber = contract.StartEpisodeNumber;
		}
Ejemplo n.º 26
0
        public AniDB_AnimeVM(JMMServerBinary.Contract_AniDBAnime contract)
        {
            this.AirDate = contract.AirDate;
            this.AllCategories = contract.AllCategories;
            this.AllCinemaID = contract.AllCinemaID;
            this.AllTags = contract.AllTags;
            this.AllTitles = contract.AllTitles;
            this.AnimeID = contract.AnimeID;
            this.AnimeNfo = contract.AnimeNfo;
            this.AnimePlanetID = contract.AnimePlanetID;
            this.AnimeType = contract.AnimeType;
            this.ANNID = contract.ANNID;
            this.AvgReviewRating = contract.AvgReviewRating;
            this.AwardList = contract.AwardList;
            this.BeginYear = contract.BeginYear;
            this.Description = contract.Description;
            this.DateTimeDescUpdated = contract.DateTimeDescUpdated;
            this.DateTimeUpdated = contract.DateTimeUpdated;
            this.EndDate = contract.EndDate;
            this.EndYear = contract.EndYear;
            this.EpisodeCount = contract.EpisodeCount;
            this.EpisodeCountNormal = contract.EpisodeCountNormal;
            this.EpisodeCountSpecial = contract.EpisodeCountSpecial;
            this.ImageEnabled = contract.ImageEnabled;
            this.LatestEpisodeNumber = contract.LatestEpisodeNumber;
            this.MainTitle = contract.MainTitle;
            this.Picname = contract.Picname;
            this.Rating = contract.Rating;
            this.Restricted = contract.Restricted;
            this.ReviewCount = contract.ReviewCount;
            this.TempRating = contract.TempRating;
            this.TempVoteCount = contract.TempVoteCount;
            this.URL = contract.URL;
            this.VoteCount = contract.VoteCount;
            this.FormattedTitle = contract.FormattedTitle;

            if (contract.DefaultImagePoster != null)
                DefaultPoster = new AniDB_Anime_DefaultImageVM(contract.DefaultImagePoster);
            else
                DefaultPoster = null;

            if (contract.DefaultImageFanart != null)
                DefaultFanart = new AniDB_Anime_DefaultImageVM(contract.DefaultImageFanart);
            else
                DefaultFanart = null;

            if (contract.DefaultImageWideBanner != null)
                DefaultWideBanner = new AniDB_Anime_DefaultImageVM(contract.DefaultImageWideBanner);
            else
                DefaultWideBanner = null;

            bool isDefault = false;
            if (DefaultPoster != null && DefaultPoster.ImageParentType == (int)ImageEntityType.AniDB_Cover)
                isDefault = true;

            IsImageDefault = isDefault;
        }
Ejemplo n.º 27
0
		public TraktTVShowResponseVM(JMMServerBinary.Contract_TraktTVShowResponse contract)
		{
			this.title = contract.title;
			this.year = contract.year;
			this.url = contract.url;
			this.first_aired = contract.first_aired;
			this.country = contract.country;
			this.overview = contract.overview;
			this.tvdb_id = contract.tvdb_id;
		}
Ejemplo n.º 28
0
 public ImportFolderVM(JMMServerBinary.Contract_ImportFolder contract)
 {
     // read only members
     this.ImportFolderID = contract.ImportFolderID;
     this.ImportFolderName = contract.ImportFolderName;
     this.ImportFolderLocation = contract.ImportFolderLocation;
     this.IsDropSource = contract.IsDropSource;
     this.IsDropDestination = contract.IsDropDestination;
     this.IsWatched = contract.IsWatched;
 }
Ejemplo n.º 29
0
        public MovieDB_MovieVM(JMMServerBinary.Contract_MovieDB_Movie contract)
        {
            this.MovieDB_MovieID = contract.MovieDB_MovieID;
            this.MovieId = contract.MovieId;
            this.MovieName = contract.MovieName;
            this.OriginalName = contract.OriginalName;
            this.Overview = contract.Overview;

            SiteURL = string.Format(Constants.URLS.MovieDB_Series, MovieId);
        }
Ejemplo n.º 30
0
		public IgnoreAnimeVM(JMMServerBinary.Contract_IgnoreAnime contract)
		{
			this.IgnoreAnimeID = contract.IgnoreAnimeID;
			this.JMMUserID = contract.JMMUserID;
			this.AnimeID = contract.AnimeID;
			this.IgnoreType = contract.IgnoreType;

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