Esempio n. 1
0
        public new MusicVideoClipOptions GetOptions()
        {
            var options = new MusicVideoClipOptions();

            CopyToOptions(options);
            return(options);
        }
Esempio n. 2
0
 public MusicVideoClip (string id, string parentId, MusicVideoClipOptions options)
     : base (id, parentId, options)
 {
     Date = options.Date;
     StorageMedium = options.StorageMedium;
     Artists = Helper.MakeReadOnlyCopy (options.Artists);
     Albums = Helper.MakeReadOnlyCopy (options.Albums);
     ScheduledStartTimes = Helper.MakeReadOnlyCopy (options.ScheduledStartTimes);
     ScheduledEndTimes = Helper.MakeReadOnlyCopy (options.ScheduledEndTimes);
     Contributors = Helper.MakeReadOnlyCopy (options.Contributors);
 }
Esempio n. 3
0
 public MusicVideoClip(string id, string parentId, MusicVideoClipOptions options)
     : base(id, parentId, options)
 {
     Date                = options.Date;
     StorageMedium       = options.StorageMedium;
     Artists             = Helper.MakeReadOnlyCopy(options.Artists);
     Albums              = Helper.MakeReadOnlyCopy(options.Albums);
     ScheduledStartTimes = Helper.MakeReadOnlyCopy(options.ScheduledStartTimes);
     ScheduledEndTimes   = Helper.MakeReadOnlyCopy(options.ScheduledEndTimes);
     Contributors        = Helper.MakeReadOnlyCopy(options.Contributors);
 }
Esempio n. 4
0
        protected void CopyToOptions (MusicVideoClipOptions options)
        {
            base.CopyToOptions (options);

            options.Date = Date;
            options.StorageMedium = StorageMedium;
            options.Artists = new List<PersonWithRole> (Artists);
            options.Albums = new List<string> (Albums);
            options.ScheduledStartTimes = new List<DateTime> (ScheduledStartTimes);
            options.ScheduledEndTimes = new List<DateTime> (ScheduledEndTimes);
            options.Contributors = new List<string> (Contributors);
        }
Esempio n. 5
0
        protected void CopyToOptions(MusicVideoClipOptions options)
        {
            base.CopyToOptions(options);

            options.Date                = Date;
            options.StorageMedium       = StorageMedium;
            options.Artists             = new List <PersonWithRole> (Artists);
            options.Albums              = new List <string> (Albums);
            options.ScheduledStartTimes = new List <DateTime> (ScheduledStartTimes);
            options.ScheduledEndTimes   = new List <DateTime> (ScheduledEndTimes);
            options.Contributors        = new List <string> (Contributors);
        }
Esempio n. 6
0
 static void AssertMusicVideoClip (MusicVideoClip musicVideoClip, MusicVideoClipOptions options)
 {
     AssertVideoItem (musicVideoClip, options);
     Assert.AreEqual (musicVideoClip.StorageMedium, options.StorageMedium);
     Assert.AreEqual (musicVideoClip.Date, options.Date);
     Assert.IsTrue (musicVideoClip.Artists.IsReadOnly);
     Assert.IsTrue (musicVideoClip.Albums.IsReadOnly);
     Assert.IsTrue (musicVideoClip.ScheduledStartTimes.IsReadOnly);
     Assert.IsTrue (musicVideoClip.ScheduledEndTimes.IsReadOnly);
     Assert.IsTrue (musicVideoClip.Contributors.IsReadOnly);
     CollectionAssert.AreEqual (musicVideoClip.Artists, options.Artists);
     CollectionAssert.AreEqual (musicVideoClip.Albums, options.Albums);
     CollectionAssert.AreEqual (musicVideoClip.ScheduledStartTimes, options.ScheduledStartTimes);
     CollectionAssert.AreEqual (musicVideoClip.ScheduledEndTimes, options.ScheduledEndTimes);
     CollectionAssert.AreEqual (musicVideoClip.Contributors, options.Contributors);
 }
Esempio n. 7
0
 static void SetMusicVideoClipOptions (MusicVideoClipOptions options)
 {
     SetVideoItemOptions (options);
     options.StorageMedium = "39";
     options.Date = "40";
     options.Artists = new[] { new PersonWithRole ("artist", "role") };
     options.Albums = new[] { "album" };
     options.ScheduledStartTimes = new[] { DateTime.Now };
     options.ScheduledEndTimes = new[] { DateTime.Now + new TimeSpan (0, 0, 10) };
     options.Contributors = new[] { "contributor" };
 }
Esempio n. 8
0
 public void MusicVideoClipInstantiation ()
 {
     var options = new MusicVideoClipOptions ();
     SetMusicVideoClipOptions (options);
     var music_video_clip = new MusicVideoClip ("-1", "-1", options);
     AssertMusicVideoClip (music_video_clip, options);
     AssertMusicVideoClip (music_video_clip, music_video_clip.GetOptions ());
 }
Esempio n. 9
0
 public new MusicVideoClipOptions GetOptions ()
 {
     var options = new MusicVideoClipOptions ();
     CopyToOptions (options);
     return options;
 }