Skip to content

Commit

Permalink
fix(definitions): add missing writeallproperties operation
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Sep 26, 2022
1 parent 58870ad commit 1586eda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/binding_coap/coap_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ extension OperationTypeExtension on OperationType {
return CoapRequestMethod.get;
case OperationType.writeproperty:
case OperationType.writemultipleproperties:
case OperationType.writeallproperties:
return CoapRequestMethod.put;
case OperationType.invokeaction:
return CoapRequestMethod.post;
Expand Down
3 changes: 3 additions & 0 deletions lib/src/definitions/operation_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ enum OperationType {
/// Corresponds with the `writemultipleproperties` operation type.
writemultipleproperties,

/// Corresponds with the `writeallproperties` operation type.
writeallproperties,

/// Corresponds with the `invokeaction` operation type.
invokeaction,

Expand Down

0 comments on commit 1586eda

Please sign in to comment.