-
public interface QueryGroupedChannelsListenerListener used when querying grouped channels from the backend.
-
-
Method Summary
Modifier and Type Method Description UnitonQueryGroupedChannelsRequest(Integer limit, Map<String, GroupedChannelsGroupQuery> groups, Boolean watch, Boolean presence)Called before the query grouped channels request is dispatched to the API. abstract UnitonQueryGroupedChannelsResult(Result<GroupedChannels> result, Integer limit, Map<String, GroupedChannelsGroupQuery> groups, Boolean watch, Boolean presence)Called when the query grouped channels request completes. -
-
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, ornullfor the server default.groups- The per-group request options being sent, ornullwhen 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, ornullfor the server default.groups- The per-group request options that were sent, ornullwhen the request asked for the server-defined default set of groups.watch- Whether watching was requested.presence- Whether presence was requested.
-
-
-
-