Package 

Class QueryChannelsSpec


  • 
    public final class QueryChannelsSpec
    
                        

    Spec describing a query channels operation and the channel CIDs that belong to it.

    Three identity flavors are supported:

    • Standard queries: identity is (filter, querySort).

    • Predefined queries: identity is predefinedFilterName plus the interpolation value maps. The filter and querySort held by this spec instance are the currently resolved values for that predefined query (captured by replacing the held spec instance — see QueryChannelsMutableState.applyResolvedSpec).

    • Grouped queries: identity is groupKey, the stable key returned by the server's grouped channels endpoint. filter and querySort hold the group's filter and sort from its latest request, or a neutral filter and last_updated descending when it had none.

    The 2-arg constructor and 2-arg copy are kept for binary compatibility with callers that predate the predefined-filter fields. They delegate to the primary constructor with the predefined fields defaulted to their empty/null values.