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 neutral placeholders for these queries.

    cids is intentionally a body var and not part of the primary constructor, so it does not participate in equals/hashCode/auto-generated copy() — it is treated as mutable spec payload rather than identity.

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