Package 

Interface QueryGroupedChannelsListener

    • 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.
      • onQueryGroupedChannelsRequest

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

        Called before the query grouped channels request is dispatched to the API, with the requested sort. By default, calls the overload without the sort.

        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.
        sort - The order requested for the channels in every group, or null for the server default.
      • 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.
      • onQueryGroupedChannelsResult

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

        Called when the query grouped channels request completes, with the requested sort. By default, calls the overload without the sort.

        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.
        sort - The order requested for the channels in every group, or null for the server default.