ClientsRepository class final
Registration of this app instance as a client device of the dome, and its sensor telemetry.
Constructors
- ClientsRepository(RepositoryContext _c)
-
Internal: created by
FreedomeClient.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
list(
) → Future< List< ClientDevice> > -
Every registered client device (operators; scope
clients:read). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
ClientRegistration registration) → Future< ClientDevice> -
Registers this device (ClientRegistration: app, device name, capabilities); returns the server record whose
idaddresses telemetry / unregister and theclients/{id}command topic. -
telemetry(
String clientId, ClientTelemetry batch) → Future< void> -
Sends a batch of sensor samples (1..1000) of client
clientId. -
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
String clientId) → Future< void> - Removes the registration.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited