Package 

Interface QueryGroupedChannelsListener

    • Method Summary

      Modifier and Type Method Description
      Unit onQueryGroupedChannelsRequest(Integer limit, Map<String, GroupedChannelsGroupQuery> groups, Boolean watch, Boolean presence) Called before the query grouped channels request is dispatched to the API.
      abstract Unit onQueryGroupedChannelsResult(Result<GroupedChannels> result, Integer limit, Map<String, GroupedChannelsGroupQuery> groups, Boolean watch, Boolean presence) Called when the query grouped channels request completes.
      • Methods inherited from class java.lang.Object

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

      • onQueryGroupedChannelsRequest

         Unit onQueryGroupedChannelsRequest(Integer limit, Map<String, GroupedChannelsGroupQuery> groups, Boolean watch, Boolean presence)

        Called before the query grouped channels request is dispatched to the API. Fires regardless of whether the call later succeeds or fails, so the state plugin can persist the request parameters early and recover them even when the response never lands.

        Parameters:
        limit - The request-level default per-group limit, or null for the server default.
        groups - The per-group request options being sent, or null when the request asks for the server-defined default set of groups.
        watch - Whether watching was requested.
        presence - Whether presence was requested.
      • onQueryGroupedChannelsResult

         abstract Unit onQueryGroupedChannelsResult(Result<GroupedChannels> result, Integer limit, Map<String, GroupedChannelsGroupQuery> groups, Boolean watch, Boolean presence)

        Called when the query grouped channels request completes.

        Parameters:
        result - The result of the query grouped channels request.
        limit - The request-level default per-group limit, or null for the server default.
        groups - The per-group request options that were sent, or null when the request asked for the server-defined default set of groups.
        watch - Whether watching was requested.
        presence - Whether presence was requested.