Beispiel #1
0
 public VoipOutChannel(Soundstructure device, string name, uint[] values)
     : base(device, name, SoundstructurePhysicalChannelType.VOIP_OUT, values)
 {
     _lines = new List <VoipLine> {
         new VoipLine(this, 1)
     };
 }
        internal VirtualChannelGroup(Soundstructure device, string name, List <ISoundstructureItem> fromChannels)
        {
            Device              = device;
            Device.ValueChange += Device_ValueChange;
            Name            = name;
            VirtualChannels = new SoundstructureItemCollection(fromChannels);

#if DEBUG
            CrestronConsole.PrintLine("Received group \x22{0}\x22 with {1} channels",
                                      Name, Count());
#endif
        }
Beispiel #3
0
        internal VirtualChannel(Soundstructure device, string name, SoundstructureVirtualChannelType vcType, SoundstructurePhysicalChannelType pcType, uint[] values)
        {
            Device              = device;
            Device.ValueChange += Device_ValueChange;
            Name = name;
            VirtualChannelType    = vcType;
            PhysicalChannelType   = pcType;
            _physicalChannelIndex = new List <uint>(values);

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

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

            CrestronConsole.PrintLine("");
#endif
        }
Beispiel #4
0
 public VoipChannel(Soundstructure device, string name, SoundstructurePhysicalChannelType pcType, uint[] values)
     : base(device, name, SoundstructureVirtualChannelType.MONO, pcType, values)
 {
     Device.VoipInfoReceived += Device_VoipInfoReceived;
 }
 public AnalogPhoneOutChannel(Soundstructure device, string name, uint[] values)
     : base(device, name, SoundstructureVirtualChannelType.MONO, SoundstructurePhysicalChannelType.PSTN_OUT, values)
 {
 }
 internal AnalogPhoneInChannel(Soundstructure device, string name, uint[] values)
     : base(device, name, SoundstructureVirtualChannelType.MONO, SoundstructurePhysicalChannelType.PSTN_IN, values)
 {
 }