-
@Serializable() public final class RegisterResponseAll fields optional: the server has two 200 shapes — a normal acceptance (
wsUrl/sessionKey/slmConfig) and a polite refusal ({ok, status, reason, deviceId}, no wsUrl) when the device doesn't meet the sdk_type's admission rules. A strict parse of the refusal envelope would throw and send the SDK into an infinite reconnect loop against a server that is deliberately declining it.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringrefusalReasonprivate final StringwsUrlprivate final StringdeviceIdprivate final StringsessionKeyprivate final List<ModelConfig>slmConfigprivate final Stringreasonprivate final JsonObjectconfigSettings
-
Constructor Summary
Constructors Constructor Description RegisterResponse(String wsUrl, String deviceId, String sessionKey, List<ModelConfig> slmConfig, String reason, JsonObject configSettings)
-
Method Summary
Modifier and Type Method Description final StringgetRefusalReason()final StringgetWsUrl()final StringgetDeviceId()final StringgetSessionKey()final List<ModelConfig>getSlmConfig()final StringgetReason()Refusal code on the polite-refusal envelope (e.g. final JsonObjectgetConfigSettings()Per-sdk-type settings keyed by the server-resolved sdk type; parsed leniently. final RegistrationSettingsregistrationSettings()-
-
Method Detail
-
getRefusalReason
final String getRefusalReason()
-
getDeviceId
final String getDeviceId()
-
getSessionKey
final String getSessionKey()
-
getSlmConfig
final List<ModelConfig> getSlmConfig()
-
getReason
final String getReason()
Refusal code on the polite-refusal envelope (e.g.
model_too_large_for_memory).
-
getConfigSettings
final JsonObject getConfigSettings()
Per-sdk-type settings keyed by the server-resolved sdk type; parsed leniently.
-
registrationSettings
final RegistrationSettings registrationSettings()
-
-
-
-