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 }
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 }
public AnalogPhoneOutChannel(Soundstructure device, string name, uint[] values) : base(device, name, SoundstructureVirtualChannelType.MONO, SoundstructurePhysicalChannelType.PSTN_OUT, values) { }
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)); }
public VoipChannel(Soundstructure device, string name, SoundstructurePhysicalChannelType pcType, uint[] values) : base(device, name, SoundstructureVirtualChannelType.MONO, pcType, values) { this.Device.VoipInfoReceived += new SoundstructureVoipInfoReceivedHandler(Device_VoipInfoReceived); }
internal AnalogPhoneInChannel(Soundstructure device, string name, uint[] values) : base(device, name, SoundstructureVirtualChannelType.MONO, SoundstructurePhysicalChannelType.PSTN_IN, values) { }
public VoipInChannel(Soundstructure device, string name, uint[] values) : base(device, name, SoundstructurePhysicalChannelType.VOIP_IN, values) { }
public SoundstructureSocket(Soundstructure device, string hostAddress) : base(hostAddress, 52774, 10000) { Device = device; }