Skip to content

Commit 36f4be4

Browse files
committed
refactor: adjust names of InteractionInput parameters
1 parent d769629 commit 36f4be4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/src/core/consumed_thing.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class ConsumedThing implements scripting_api.ConsumedThing {
153153
@override
154154
Future<void> writeProperty(
155155
String propertyName,
156-
InteractionInput interactionInput, {
156+
InteractionInput input, {
157157
int? formIndex,
158158
Map<String, Object>? uriVariables,
159159
Object? data,
@@ -180,7 +180,7 @@ class ConsumedThing implements scripting_api.ConsumedThing {
180180
final form = clientAndForm.form;
181181
final client = clientAndForm.client;
182182
final content = servient.contentSerdes
183-
.valueToContent(interactionInput, property, form.contentType);
183+
.valueToContent(input, property, form.contentType);
184184
await client.writeResource(form, content);
185185
}
186186

lib/src/scripting_api/consumed_thing.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ abstract interface class ConsumedThing {
5151
Object? data,
5252
});
5353

54-
/// Writes an [interactionInput] value to a property with the given
54+
/// Writes an [input] value to a property with the given
5555
/// [propertyName].
5656
Future<void> writeProperty(
5757
String propertyName,
58-
InteractionInput interactionInput, {
58+
InteractionInput input, {
5959
int? formIndex,
6060
Map<String, Object>? uriVariables,
6161
Object? data,
@@ -76,7 +76,7 @@ abstract interface class ConsumedThing {
7676
/// After (asynchronous )completion, it might return an [InteractionOutput].
7777
Future<InteractionOutput> invokeAction(
7878
String actionName, {
79-
InteractionInput input,
79+
InteractionInput? input,
8080
int? formIndex,
8181
Map<String, Object>? uriVariables,
8282
Object? data,

0 commit comments

Comments
 (0)