Interface ChatKitThread.Status.Visitor
-
- All Implemented Interfaces:
public interface ChatKitThread.Status.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitActive(JsonValue active)
Indicates that a thread is active. abstract T
visitLocked(ChatKitThread.Status.Locked locked)
Indicates that a thread is locked and cannot accept new input. abstract T
visitClosed(ChatKitThread.Status.Closed closed)
Indicates that a thread has been closed. T
unknown(JsonValue json)
Maps an unknown variant of Status to a value of type T. -
-
Method Detail
-
visitActive
abstract T visitActive(JsonValue active)
Indicates that a thread is active.
-
visitLocked
abstract T visitLocked(ChatKitThread.Status.Locked locked)
Indicates that a thread is locked and cannot accept new input.
-
visitClosed
abstract T visitClosed(ChatKitThread.Status.Closed closed)
Indicates that a thread has been closed.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Status to a value of type T.
An instance of Status can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-