Skip to content

Commit

Permalink
refactor: adjust names of InteractionInput parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Dec 23, 2023
1 parent d769629 commit 36f4be4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/src/core/consumed_thing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class ConsumedThing implements scripting_api.ConsumedThing {
@override
Future<void> writeProperty(
String propertyName,
InteractionInput interactionInput, {
InteractionInput input, {
int? formIndex,
Map<String, Object>? uriVariables,
Object? data,
Expand All @@ -180,7 +180,7 @@ class ConsumedThing implements scripting_api.ConsumedThing {
final form = clientAndForm.form;
final client = clientAndForm.client;
final content = servient.contentSerdes
.valueToContent(interactionInput, property, form.contentType);
.valueToContent(input, property, form.contentType);
await client.writeResource(form, content);
}

Expand Down
6 changes: 3 additions & 3 deletions lib/src/scripting_api/consumed_thing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ abstract interface class ConsumedThing {
Object? data,
});

/// Writes an [interactionInput] value to a property with the given
/// Writes an [input] value to a property with the given
/// [propertyName].
Future<void> writeProperty(
String propertyName,
InteractionInput interactionInput, {
InteractionInput input, {
int? formIndex,
Map<String, Object>? uriVariables,
Object? data,
Expand All @@ -76,7 +76,7 @@ abstract interface class ConsumedThing {
/// After (asynchronous )completion, it might return an [InteractionOutput].
Future<InteractionOutput> invokeAction(
String actionName, {
InteractionInput input,
InteractionInput? input,
int? formIndex,
Map<String, Object>? uriVariables,
Object? data,
Expand Down

0 comments on commit 36f4be4

Please sign in to comment.