Represents server discovery data including endpoint URLs and metadata. More...
Header: | #include <DiscoveryPayload> |
|
|
DiscoveryPayload(const QJsonObject &json) | |
DiscoveryPayload(const QString &name, const QString &serverId, const QString &authEndpoint, const QString &tokenEndpoint, const QString chatEndpoint, const QString healthUrl) | |
QString | authEndpoint() const |
QString | chatEndpoint() const |
QString | healthUrl() const |
QString | serverId() const |
QString | serverName() const |
void | setAuthEndpoint(const QString &endpoint) |
void | setChatEndpoint(const QString &endpoint) |
void | setHealthUrl(const QString &url) |
void | setServerId(const QString &serverId) |
void | setServerName(const QString &serverName) |
void | setTokenEndpoint(const QString &endpoint) |
QString | tokenEndpoint() const |
DiscoveryPayload encapsulates the fields returned from a discovery server, such as the server name and key endpoint URLs for authentication and messaging.
Returns the authentication endpoint URL.
Access functions:
QString | authEndpoint() const |
void | setAuthEndpoint(const QString &endpoint) |
Returns the WebSocket chat endpoint URL.
Access functions:
QString | chatEndpoint() const |
void | setChatEndpoint(const QString &endpoint) |
Returns the health check endpoint URL.
Access functions:
QString | healthUrl() const |
void | setHealthUrl(const QString &url) |
Returns the internal identifier for the server.
Access functions:
QString | serverId() const |
void | setServerId(const QString &serverId) |
This property holds the user-facing name of the server.
Access functions:
QString | serverName() const |
void | setServerName(const QString &serverName) |
Returns the token exchange endpoint URL.
Access functions:
QString | tokenEndpoint() const |
void | setTokenEndpoint(const QString &endpoint) |
[explicit]
DiscoveryPayload::DiscoveryPayload(const QJsonObject &json)Constructs a DiscoveryPayload from a JSON object.
Extracts fields from json including server name, ID, and endpoint URLs.
Constructs a DiscoveryPayload with explicit values.
name is the display name of the server. serverId is a unique identifier. authEndpoint is the authentication endpoint. tokenEndpoint is the URL for token exchange. chatEndpoint is the URL for WebSocket connection. healthUrl is the endpoint for authentication service health checks.
Sets the authentication endpoint.
endpoint is the authentication new URL to set.
Note: Setter function for property authEndpoint.
See also authEndpoint().
Sets the new WebSocket chat endpoint.
endpoint is the new URL to set.
Note: Setter function for property chatEndpoint.
See also chatEndpoint().
Sets the health check URL.
url is the new URL to set.
Note: Setter function for property healthUrl.
See also healthUrl().
Sets the server's unique identifier.
serverId is the new ID to assign.
Note: Setter function for property serverId.
See also serverId().
Sets the server display name.
serverName is the new name to set.
Note: Setter function for property serverName.
See also serverName().
Sets the token endpoint URL.
endpoint is the new URL to set.
Note: Setter function for property tokenEndpoint.
See also tokenEndpoint().