コード例 #1
0
        public new MusicVideoClipOptions GetOptions()
        {
            var options = new MusicVideoClipOptions();

            CopyToOptions(options);
            return(options);
        }
コード例 #2
0
ファイル: MusicVideoClip.cs プロジェクト: pacificIT/mono-upnp
 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);
 }
コード例 #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);
 }
コード例 #4
0
ファイル: MusicVideoClip.cs プロジェクト: pacificIT/mono-upnp
        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);
        }
コード例 #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);
        }
コード例 #6
0
ファイル: ObjectTests.cs プロジェクト: pacificIT/mono-upnp
 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);
 }
コード例 #7
0
ファイル: ObjectTests.cs プロジェクト: pacificIT/mono-upnp
 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" };
 }
コード例 #8
0
ファイル: ObjectTests.cs プロジェクト: pacificIT/mono-upnp
 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 ());
 }
コード例 #9
0
ファイル: MusicVideoClip.cs プロジェクト: pacificIT/mono-upnp
 public new MusicVideoClipOptions GetOptions ()
 {
     var options = new MusicVideoClipOptions ();
     CopyToOptions (options);
     return options;
 }