@@ -28,21 +28,30 @@ namespace app {
28
28
namespace Clusters {
29
29
namespace PowerTopology {
30
30
31
- using namespace chip ::app::Clusters::PowerTopology::Attributes;
32
-
33
31
using chip::Protocols::InteractionModel::Status;
34
32
35
33
class Delegate
36
34
{
37
35
public:
38
- Delegate (EndpointId aEndpointId) : mEndpointId (aEndpointId) {}
39
36
virtual ~Delegate () = default ;
40
37
41
- virtual CHIP_ERROR const GetAvailableEndpointAtIndex (size_t index, EndpointId & endpointId) = 0;
42
- virtual CHIP_ERROR const GetActiveEndpointAtIndex (size_t index, EndpointId & endpointId) = 0;
38
+ /* *
39
+ * Get the Nth EndpointId in the list of available endpoints.
40
+ * @param index The index of the EndpointId to be returned.
41
+ * @param endpointId A reference to the EndpointId.
42
+ * @return Returns a CHIP_NO_ERROR if there was no error and the EndpointId was returned successfully.
43
+ * CHIP_ERROR_PROVIDER_LIST_EXHAUSTED if the index is greater than or equal to the length of the list of available endpoints.
44
+ */
45
+ virtual CHIP_ERROR GetAvailableEndpointAtIndex (size_t index, EndpointId & endpointId) = 0;
43
46
44
- protected:
45
- EndpointId mEndpointId = 0 ;
47
+ /* *
48
+ * Get the Nth EndpointId in the list of active endpoints.
49
+ * @param index The index of the EndpointId to be returned.
50
+ * @param endpointId A reference to the EndpointId.
51
+ * @return Returns a CHIP_NO_ERROR if there was no error and the EndpointId was returned successfully.
52
+ * CHIP_ERROR_PROVIDER_LIST_EXHAUSTED if the index is greater than or equal to the length of the list of active endpoints.
53
+ */
54
+ virtual CHIP_ERROR GetActiveEndpointAtIndex (size_t index, EndpointId & endpointId) = 0;
46
55
};
47
56
48
57
enum class OptionalAttributes : uint32_t
0 commit comments