Beispiel #1
0
        public new AudioBroadcastOptions GetOptions()
        {
            var options = new AudioBroadcastOptions();

            CopyToOptions(options);
            return(options);
        }
Beispiel #2
0
 public AudioBroadcast (string id, string parentId, AudioBroadcastOptions options)
     : base (id, parentId, options)
 {
     Region = options.Region;
     RadioCallSign = options.RadioCallSign;
     RadioStationId = options.RadioStationId;
     RadioBand = options.RadioBand;
     ChannelNr = options.ChannelNr;
 }
Beispiel #3
0
 public AudioBroadcast(string id, string parentId, AudioBroadcastOptions options)
     : base(id, parentId, options)
 {
     Region         = options.Region;
     RadioCallSign  = options.RadioCallSign;
     RadioStationId = options.RadioStationId;
     RadioBand      = options.RadioBand;
     ChannelNr      = options.ChannelNr;
 }
Beispiel #4
0
        protected void CopyToOptions (AudioBroadcastOptions options)
        {
            base.CopyToOptions (options);

            options.Region = Region;
            options.RadioCallSign = RadioCallSign;
            options.RadioStationId = RadioStationId;
            options.RadioBand = RadioBand;
            options.ChannelNr = ChannelNr;
        }
Beispiel #5
0
        protected void CopyToOptions(AudioBroadcastOptions options)
        {
            base.CopyToOptions(options);

            options.Region         = Region;
            options.RadioCallSign  = RadioCallSign;
            options.RadioStationId = RadioStationId;
            options.RadioBand      = RadioBand;
            options.ChannelNr      = ChannelNr;
        }
Beispiel #6
0
 static void AssertAudioBroadcast (AudioBroadcast audioBroadcast, AudioBroadcastOptions options)
 {
     AssertAudioItem (audioBroadcast, options);
     Assert.AreEqual (audioBroadcast.Region, options.Region);
     Assert.AreEqual (audioBroadcast.RadioCallSign, options.RadioCallSign);
     Assert.AreEqual (audioBroadcast.RadioStationId, options.RadioStationId);
     Assert.AreEqual (audioBroadcast.RadioBand, options.RadioBand);
     Assert.AreEqual (audioBroadcast.ChannelNr, options.ChannelNr);
 }
Beispiel #7
0
 static void SetAudioBroadcastOptions (AudioBroadcastOptions options)
 {
     SetAudioItemOptions (options);
     options.Region = "15";
     options.RadioCallSign = "16";
     options.RadioStationId = "17";
     options.RadioBand = "18";
     options.ChannelNr = 19;
 }
Beispiel #8
0
 public void AudioBroadcastInstantiation ()
 {
     var options = new AudioBroadcastOptions ();
     SetAudioBroadcastOptions (options);
     var audio_broadcast = new AudioBroadcast ("-1", "-1", options);
     AssertAudioBroadcast (audio_broadcast, options);
     AssertAudioBroadcast (audio_broadcast, audio_broadcast.GetOptions ());
 }
Beispiel #9
0
 public new AudioBroadcastOptions GetOptions ()
 {
     var options = new AudioBroadcastOptions ();
     CopyToOptions (options);
     return options;
 }