public PVContract(PVForSong pv) : this((PV)pv) { Length = pv.Length; ThumbUrl = pv.ThumbUrl; }
public virtual PVForSong CreatePV(PVContract contract) { ParamIs.NotNull(() => contract); var pv = new PVForSong(this, contract); PVs.Add(pv); UpdateNicoId(); UpdatePVServices(); return(pv); }
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; }
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); }
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); }
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" }; }