Skip to content

Commit

Permalink
[darwin] Add cluster and commands description from XML into MTRBaseCl…
Browse files Browse the repository at this point in the history
…usters.zapt
  • Loading branch information
vivien-apple committed Sep 15, 2022
1 parent 8acce88 commit 26188d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ NS_ASSUME_NONNULL_BEGIN

/**
* Cluster {{name}}
* {{description}}
*
* {{description}}
*/
@interface MTRBaseCluster{{asUpperCamelCase name}} : MTRCluster

Expand All @@ -23,6 +24,12 @@ NS_ASSUME_NONNULL_BEGIN
queue:(dispatch_queue_t)queue NS_DESIGNATED_INITIALIZER;

{{#chip_cluster_commands}}

/**
* Command {{name}}
*
* {{description}}
*/
- (void){{asLowerCamelCase name}}WithParams:(MTR{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params * {{#unless (commandHasRequiredField .)}}_Nullable{{/unless}})params completion:({{>command_completion_type command=.}})completion;
{{#unless (hasArguments)}}
- (void){{asLowerCamelCase name}}WithCompletion:({{>command_completion_type command=.}})completion;
Expand Down

0 comments on commit 26188d3

Please sign in to comment.