Represents a client API to operate a Thing. Belongs to the WoT Consumer conformance class.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thingDescription → ThingDescription
-
Returns the ThingDescription that represents the consumed Thing.
no setter
Methods
-
invokeAction(
String actionName, {InteractionInput? input, int? formIndex, Map< String, Object> ? uriVariables, Object? data}) → Future<InteractionOutput> -
Invokes an action with the given
actionName
. Accepts an optionalinput
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observeProperty(
String propertyName, InteractionListener listener, {ErrorListener? onError, int? formIndex, Map< String, Object> ? uriVariables, Object? data}) → Future<Subscription> -
Observes a property with the given
propertyName
. -
readAllProperties(
{int? formIndex, Map< String, Object> ? uriVariables, Object? data}) → Future<PropertyReadMap> - Reads all properties.
-
readMultipleProperties(
List< String> propertyNames, {int? formIndex, Map<String, Object> ? uriVariables, Object? data}) → Future<PropertyReadMap> -
Reads a number of properties with the given
propertyNames
. -
readProperty(
String propertyName, {int? formIndex, Map< String, Object> ? uriVariables, Object? data}) → Future<InteractionOutput> -
Reads a property with the given
propertyName
. -
subscribeEvent(
String eventName, InteractionListener listener, {ErrorListener? onError, int? formIndex, Map< String, Object> ? uriVariables, Object? data}) → Future<Subscription> -
Subscribes to an event with the given
eventName
. -
toString(
) → String -
A string representation of this object.
inherited
-
writeMultipleProperties(
PropertyWriteMap valueMap, {int? formIndex, Map< String, Object> ? uriVariables, Object? data}) → Future<void> -
Writes multiple values to multiple properties, as described in a
valueMap
. -
writeProperty(
String propertyName, InteractionInput input, {int? formIndex, Map< String, Object> ? uriVariables, Object? data}) → Future<void> -
Writes an
input
value to a property with the givenpropertyName
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited