@@ -67,66 +67,3 @@ class Device
67
67
chip::EndpointId mParentEndpointId ;
68
68
std::string mZone ;
69
69
};
70
-
71
- class EndpointListInfo
72
- {
73
- public:
74
- EndpointListInfo (uint16_t endpointListId, std::string name, chip::app::Clusters::Actions::EndpointListTypeEnum type);
75
- EndpointListInfo (uint16_t endpointListId, std::string name, chip::app::Clusters::Actions::EndpointListTypeEnum type,
76
- chip::EndpointId endpointId);
77
- void AddEndpointId (chip::EndpointId endpointId);
78
- inline uint16_t GetEndpointListId () { return mEndpointListId ; };
79
- std::string GetName () { return mName ; };
80
- inline chip::app::Clusters::Actions::EndpointListTypeEnum GetType () { return mType ; };
81
- inline chip::EndpointId * GetEndpointListData () { return mEndpoints .data (); };
82
- inline size_t GetEndpointListSize () { return mEndpoints .size (); };
83
-
84
- private:
85
- uint16_t mEndpointListId = static_cast <uint16_t >(0 );
86
- std::string mName ;
87
- chip::app::Clusters::Actions::EndpointListTypeEnum mType = static_cast <chip::app::Clusters::Actions::EndpointListTypeEnum>(0 );
88
- std::vector<chip::EndpointId> mEndpoints ;
89
- };
90
-
91
- class Room
92
- {
93
- public:
94
- Room (std::string name, uint16_t endpointListId, chip::app::Clusters::Actions::EndpointListTypeEnum type, bool isVisible);
95
- inline void setIsVisible (bool isVisible) { mIsVisible = isVisible; };
96
- inline bool getIsVisible () { return mIsVisible ; };
97
- inline void setName (std::string name) { mName = name; };
98
- inline std::string getName () { return mName ; };
99
- inline chip::app::Clusters::Actions::EndpointListTypeEnum getType () { return mType ; };
100
- inline uint16_t getEndpointListId () { return mEndpointListId ; };
101
-
102
- private:
103
- bool mIsVisible ;
104
- std::string mName ;
105
- uint16_t mEndpointListId ;
106
- chip::app::Clusters::Actions::EndpointListTypeEnum mType ;
107
- };
108
-
109
- class Action
110
- {
111
- public:
112
- Action (uint16_t actionId, std::string name, chip::app::Clusters::Actions::ActionTypeEnum type, uint16_t endpointListId,
113
- uint16_t supportedCommands, chip::app::Clusters::Actions::ActionStateEnum status, bool isVisible);
114
- inline void setName (std::string name) { mName = name; };
115
- inline std::string getName () { return mName ; };
116
- inline chip::app::Clusters::Actions::ActionTypeEnum getType () { return mType ; };
117
- inline chip::app::Clusters::Actions::ActionStateEnum getStatus () { return mStatus ; };
118
- inline uint16_t getActionId () { return mActionId ; };
119
- inline uint16_t getEndpointListId () { return mEndpointListId ; };
120
- inline uint16_t getSupportedCommands () { return mSupportedCommands ; };
121
- inline void setIsVisible (bool isVisible) { mIsVisible = isVisible; };
122
- inline bool getIsVisible () { return mIsVisible ; };
123
-
124
- private:
125
- std::string mName ;
126
- chip::app::Clusters::Actions::ActionTypeEnum mType ;
127
- chip::app::Clusters::Actions::ActionStateEnum mStatus ;
128
- uint16_t mActionId ;
129
- uint16_t mEndpointListId ;
130
- uint16_t mSupportedCommands ;
131
- bool mIsVisible ;
132
- };
0 commit comments