ResourceAdapter<T extends TransferObjectBase> class

Inheritance
Implementers

Constructors

ResourceAdapter(RoutePattern routePattern, TransferBean<T> bean, Future<T> _get(ApiRequest request), Stream<T> _getStream(ApiRequest request))

Properties

bean TransferBean<T>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
routePattern RoutePattern
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(ApiRequest request) Future<T>
Fetches the value of the resource once.
override
getStream(ApiRequest request) Stream<T>
Subscribes to the resource and emits the value every time it updates.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited