Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public ZclClusterDao GetDao()
        {
            ZclClusterDao dao = new ZclClusterDao
            {
                ClusterId                  = _clusterId,
                IsClient                   = _isClient,
                SupportedAttributes        = _supportedAttributes.ToList(),
                SupportedCommandsGenerated = _supportedCommandsGenerated.ToList(),
                SupportedCommandsReceived  = _supportedCommandsReceived.ToList(),
                Attributes                 = _attributes
            };

            return(dao);
        }