예제 #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
        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;
 }