-
public final class StateRegistryRegistry of all state objects exposed in the offline plugin. This class should have only one instance for the SDK.
-
-
Field Summary
Fields Modifier and Type Field Description private final CoroutineScopescope
-
Method Summary
Modifier and Type Method Description final CoroutineScopegetScope()final QueryChannelsStatequeryChannels(FilterObject filter, QuerySort<Channel> sort)Returns QueryChannelsState associated with particular filter and sort. final ChannelStatechannel(String channelType, String channelId)Returns ChannelState that represents a state of particular channel. final ThreadStatethread(String messageId)Returns ThreadState of thread replies with parent message that has id equal to messageId. final Unitclear()Clear state of all state objects. -
-
Method Detail
-
getScope
final CoroutineScope getScope()
-
queryChannels
final QueryChannelsState queryChannels(FilterObject filter, QuerySort<Channel> sort)
Returns QueryChannelsState associated with particular filter and sort.
- Parameters:
filter- Filter used to query channels.sort- Sort specification used to query channels.
-
channel
final ChannelState channel(String channelType, String channelId)
Returns ChannelState that represents a state of particular channel.
- Parameters:
channelType- The channel type.channelId- The channel id.
-
thread
final ThreadState thread(String messageId)
Returns ThreadState of thread replies with parent message that has id equal to messageId.
- Parameters:
messageId- Thread's parent message id.
-
-
-
-