Represents the online status of a single user. More...
| Header: | #include <UserStatusPayload> |
| UserStatusPayload(const QJsonObject &json) | |
| QString | id() const |
| bool | isConnected() const |
| QString | username() const |
This payload is typically included in "connected_users" or "user_status" messages sent by the server.
[read-only] id : const QStringReturns the unique identifier of the user.
Access functions:
| QString | id() const |
[read-only] isConnected : const boolReturns true if the user is currently online.
Access functions:
| bool | isConnected() const |
[read-only] username : const QStringReturns the user's username.
Access functions:
| QString | username() const |
[explicit] UserStatusPayload::UserStatusPayload(const QJsonObject &json)Constructs a UserStatusPayload from a json object.
Extracts the id, username, and status fields from the JSON structure.