public Channel(XMLAPI.DeviceList.Channel dlc, Device d) { Device = d; Rooms = new HashSet <string>(); Functions = new HashSet <string>(); Datapoints = new Dictionary <string, Datapoint>(); MasterValues = new Dictionary <string, Mastervalue>(); FillFromDeviceListChannel(dlc); }
private void FillFromDeviceListChannel(XMLAPI.DeviceList.Channel c) { Name = c.Name; Type = c.Type; Address = c.Address; ISEID = c.Ise_id; Direction = c.Direction; ParentDeviceISEID = c.Parent_device; ChannelIndex = Convert.ToInt32(c.Index); GroupParnter = null; //todo AESAvailable = String.IsNullOrWhiteSpace(c.Aes_available) ? false : Convert.ToBoolean(c.Aes_available); TransmissionMode = c.Transmission_mode; Visible = String.IsNullOrWhiteSpace(c.Visible) ? false : Convert.ToBoolean(c.Visible); Operate = String.IsNullOrWhiteSpace(c.Operate) ? false : Convert.ToBoolean(c.Operate); }