ClientStatus class
Client Status structure
Active sessions are indicated with an "online", "idle", or "dnd" string per platform. If a user is offline or invisible, the corresponding field is not present.
https://discord.com/developers/docs/topics/gateway#client-status-object
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- ClientStatus({PresenceStatus? desktop, PresenceStatus? mobile, PresenceStatus? web})
- Constructor
-
ClientStatus.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- desktop → PresenceStatus?
-
the user's status set for an active desktop (Windows, Linux, Mac) application session
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mobile → PresenceStatus?
-
the user's status set for an active mobile (iOS, Android) application session
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- web → PresenceStatus?
-
the user's status set for an active web (browser, bot account) application session
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited