Exemple #1
0
		public PVContract(PVForSong pv)
			: this((PV)pv) {

			Length = pv.Length;
			ThumbUrl = pv.ThumbUrl;

		}
Exemple #2
0
        public virtual PVForSong CreatePV(PVContract contract)
        {
            ParamIs.NotNull(() => contract);

            var pv = new PVForSong(this, contract);

            PVs.Add(pv);

            UpdateNicoId();
            UpdatePVServices();

            return(pv);
        }
Exemple #3
0
        public virtual bool Equals(PVForSong another)
        {
            if (another == null)
                return false;

            if (ReferenceEquals(this, another))
                return true;

            if (Id == 0)
                return false;

            return this.Id == another.Id;
        }
Exemple #4
0
        public virtual PVForSong CreatePV(PVContract contract)
        {
            ParamIs.NotNull(() => contract);

            var pv = new PVForSong(this, contract);

            PVs.Add(pv);

            UpdateNicoId();
            UpdatePVServices();

            if (LengthSeconds <= 0)
            {
                LengthSeconds = GetLengthFromPV();
            }

            return(pv);
        }
Exemple #5
0
        public virtual bool Equals(PVForSong another)
        {
            if (another == null)
            {
                return(false);
            }

            if (ReferenceEquals(this, another))
            {
                return(true);
            }

            if (Id == 0)
            {
                return(false);
            }

            return(this.Id == another.Id);
        }
Exemple #6
0
 public PVContract(PVForSong pv)
     : this((PV)pv)
 {
     ThumbUrl = pv.ThumbUrl;
 }
 public PVForSongContract(PVForSong pv, ContentLanguagePreference languagePreference)
     : base(pv)
 {
     Song = new SongContract(pv.Song, languagePreference);
 }
		public void SetUp() {
			
			originalWithThumb = new PVForSong { Service = PVService.NicoNicoDouga, PVType = PVType.Original, PVId = "original_id", ThumbUrl = "original" };
			reprintWithThumb = new PVForSong { Service = PVService.Youtube, PVType = PVType.Reprint, PVId = "reprint_id", ThumbUrl = "reprint" };

		}