Package 

Interface QueryReference


  • 
    public interface QueryReference<T extends Object, S extends Object>
    
                        

    Generic reference entity that wrap a request to ChatClient and expose offline state (see asState). T is a type of requested data. S is a offline state.

    • Method Summary

      Modifier and Type Method Description
      abstract Call<T> get() Returns a call as result of request
      abstract S asState(CoroutineScope scope) Returns an offline state representing this request.
      • Methods inherited from class java.lang.Object

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

      • get

         abstract Call<T> get()

        Returns a call as result of request

      • asState

         abstract S asState(CoroutineScope scope)

        Returns an offline state representing this request.

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