Package 

Class QueryChannelReference

  • All Implemented Interfaces:
    io.getstream.chat.android.offline.experimental.plugin.QueryReference

    
    public final class QueryChannelReference
     implements QueryReference<Channel, ChannelState>
                        

    Reference for the ChatClient.queryChannel request.

    • Method Summary

      Modifier and Type Method Description
      Call<Channel> get() Returns a call of the channel type representing output value of ChatClient.queryChannel.
      ChannelState asState(CoroutineScope scope) Returns ChannelState for combination of channelType and channelId.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

         Call<Channel> get()

        Returns a call of the channel type representing output value of ChatClient.queryChannel.

      • asState

         ChannelState asState(CoroutineScope scope)

        Returns ChannelState for combination of channelType and channelId. And fill it by data from ChatClient.queryChannel.

        Parameters:
        scope - Coroutine scope where initial data filling action is being invoked.