コード例 #1
0
        internal VirtualChannelGroup(Soundstructure device, string name, List <ISoundstructureItem> fromChannels)
        {
            this.Device              = device;
            this.Device.ValueChange += new SoundstructureValueChangeHandler(Device_ValueChange);
            this.Name            = name;
            this.VirtualChannels = new SoundstructureItemCollection(fromChannels);

#if DEBUG
            CrestronConsole.PrintLine("Received group \x22{0}\x22 with {1} channels",
                                      this.Name, this.Count());
#endif
        }
コード例 #2
0
ファイル: VirtualChannel.cs プロジェクト: uxav/UX-Simpl-Sharp
        internal VirtualChannel(Soundstructure device, string name, SoundstructureVirtualChannelType vcType, SoundstructurePhysicalChannelType pcType, uint[] values)
        {
            this.Device              = device;
            this.Device.ValueChange += new SoundstructureValueChangeHandler(Device_ValueChange);
            this.Name = name;
            this.VirtualChannelType  = vcType;
            this.PhysicalChannelType = pcType;
            _physicalChannelIndex    = new List <uint>(values);

#if DEBUG
            CrestronConsole.Print("Received {0} with name: {1}, Virtual Type: {2}, Physical Type: {3} Values:",
                                  this.GetType().ToString().Split('.').Last(), this.Name, this.VirtualChannelType.ToString(), this.PhysicalChannelType.ToString());

            foreach (uint value in this.PhysicalChannelIndex)
            {
                CrestronConsole.Print(" {0}", value);
            }

            CrestronConsole.PrintLine("");
#endif
        }
コード例 #3
0
 public AnalogPhoneOutChannel(Soundstructure device, string name, uint[] values)
     : base(device, name, SoundstructureVirtualChannelType.MONO, SoundstructurePhysicalChannelType.PSTN_OUT, values)
 {
 }
コード例 #4
0
 public VoipOutChannel(Soundstructure device, string name, uint[] values)
     : base(device, name, SoundstructurePhysicalChannelType.VOIP_OUT, values)
 {
     _Lines = new List <VoipLine>();
     _Lines.Add(new VoipLine(this, 1));
 }
コード例 #5
0
 public VoipChannel(Soundstructure device, string name, SoundstructurePhysicalChannelType pcType, uint[] values)
     : base(device, name, SoundstructureVirtualChannelType.MONO, pcType, values)
 {
     this.Device.VoipInfoReceived += new SoundstructureVoipInfoReceivedHandler(Device_VoipInfoReceived);
 }
コード例 #6
0
 internal AnalogPhoneInChannel(Soundstructure device, string name, uint[] values)
     : base(device, name, SoundstructureVirtualChannelType.MONO, SoundstructurePhysicalChannelType.PSTN_IN, values)
 {
 }
コード例 #7
0
 public VoipInChannel(Soundstructure device, string name, uint[] values)
     : base(device, name, SoundstructurePhysicalChannelType.VOIP_IN, values)
 {
 }
コード例 #8
0
 public SoundstructureSocket(Soundstructure device, string hostAddress)
     : base(hostAddress, 52774, 10000)
 {
     Device = device;
 }