public void SetDao(ZclClusterDao dao) { _clusterId = dao.ClusterId; _isClient = dao.IsClient; _supportedAttributes.AddRange(dao.SupportedAttributes); _supportedCommandsGenerated.AddRange(dao.SupportedCommandsGenerated); _supportedCommandsReceived.AddRange(dao.SupportedCommandsReceived); _attributes = dao.Attributes; }
public ZclClusterDao getDao() { ZclClusterDao dao = new ZclClusterDao(); dao.ClusterId = _clusterId; dao.IsClient = _isClient; dao.SupportedAttributes = _supportedAttributes; dao.SupportedCommandsGenerated = _supportedCommandsGenerated; dao.SupportedCommandsReceived = _supportedCommandsReceived; dao.Attributes = _attributes; return(dao); }
public ZclClusterDao GetDao() { ZclClusterDao dao = new ZclClusterDao { ClusterId = _clusterId, IsClient = _isClient, SupportedAttributes = _supportedAttributes.ToList(), SupportedCommandsGenerated = _supportedCommandsGenerated.ToList(), SupportedCommandsReceived = _supportedCommandsReceived.ToList(), Attributes = _attributes }; return(dao); }