OryksaPhoneEventsPage class
One answer of the events long-poll.
- Annotations
Constructors
-
OryksaPhoneEventsPage({required String state, required int next, List<
OryksaPhoneEvent> events = const [], bool? phoneConnected}) -
Creates a page.
const
-
OryksaPhoneEventsPage.fromJson(Map<
String, dynamic> j, {int after = 0}) -
Reads the answer of
GET /v1/client/tv/pair/{id}/events.factory
Properties
-
events
→ List<
OryksaPhoneEvent> -
New events, oldest first.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- next → int
-
Pass as
afterin the next call.final - phoneConnected → bool?
-
Whether a phone is connected right now (
phone), when the server says it.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String
-
waiting,paired,expiredorclosed.final
Methods
-
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