示例#1
0
        public new VideoBroadcastOptions GetOptions()
        {
            var options = new VideoBroadcastOptions();

            CopyToOptions(options);
            return(options);
        }
示例#2
0
 public VideoBroadcast(string id, string parentId, VideoBroadcastOptions options)
     : base(id, parentId, options)
 {
     Icon      = options.Icon;
     Region    = options.Region;
     ChannelNr = options.ChannelNr;
 }
示例#3
0
 public VideoBroadcast (string id, string parentId, VideoBroadcastOptions options)
     : base (id, parentId, options)
 {
     Icon = options.Icon;
     Region = options.Region;
     ChannelNr = options.ChannelNr;
 }
示例#4
0
        protected void CopyToOptions(VideoBroadcastOptions options)
        {
            base.CopyToOptions(options);

            options.Icon      = Icon;
            options.Region    = Region;
            options.ChannelNr = ChannelNr;
        }
示例#5
0
        protected void CopyToOptions (VideoBroadcastOptions options)
        {
            base.CopyToOptions (options);

            options.Icon = Icon;
            options.Region = Region;
            options.ChannelNr = ChannelNr;
        }
示例#6
0
 static void AssertVideoBroadcast (VideoBroadcast videoBroadcast, VideoBroadcastOptions options)
 {
     AssertVideoItem (videoBroadcast, options);
     Assert.AreEqual (videoBroadcast.Icon, options.Icon);
     Assert.AreEqual (videoBroadcast.Region, options.Region);
     Assert.AreEqual (videoBroadcast.ChannelNr, options.ChannelNr);
 }
示例#7
0
 static void SetVideoBroadcastOptions (VideoBroadcastOptions options)
 {
     SetVideoItemOptions (options);
     options.Icon = new Uri ("http://64");
     options.Region = "65";
     options.ChannelNr = 66;
 }
示例#8
0
 public void VideoBroadcastInstantiation ()
 {
     var options = new VideoBroadcastOptions ();
     SetVideoBroadcastOptions (options);
     var video_broadcast = new VideoBroadcast ("-1", "-1", options);
     AssertVideoBroadcast (video_broadcast, options);
     AssertVideoBroadcast (video_broadcast, video_broadcast.GetOptions ());
 }
示例#9
0
 public new VideoBroadcastOptions GetOptions ()
 {
     var options = new VideoBroadcastOptions ();
     CopyToOptions (options);
     return options;
 }