|
| 1 | +/* |
| 2 | + * Copyright (c) 2014-2026 Stream.io Inc. All rights reserved. |
| 3 | + * |
| 4 | + * Licensed under the Stream License; |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +package io.getstream.chat.android.state.plugin.state.querychannels |
| 18 | + |
| 19 | +import io.getstream.chat.android.client.ChatClient |
| 20 | +import io.getstream.chat.android.models.GroupedChannelsGroupQuery |
| 21 | + |
| 22 | +/** |
| 23 | + * Configuration captured from the most recent [ChatClient.queryGroupedChannels] request that |
| 24 | + * targeted a specific group. Subsequent paginated and recovery calls read this back so they |
| 25 | + * reuse the original parameters the caller chose. |
| 26 | + * |
| 27 | + * @property limit Request-level fallback limit applied to every group that doesn't specify its |
| 28 | + * own override. |
| 29 | + * @property pageSize This group's per-group override ([GroupedChannelsGroupQuery.limit]). `null` |
| 30 | + * when only the request-level [limit] was specified. |
| 31 | + * @property watch Whether the request asked to subscribe to channel events. |
| 32 | + * @property presence Whether the request asked to subscribe to presence events. |
| 33 | + */ |
| 34 | +public data class GroupedQueryConfig( |
| 35 | + public val limit: Int?, |
| 36 | + public val pageSize: Int?, |
| 37 | + public val watch: Boolean, |
| 38 | + public val presence: Boolean, |
| 39 | +) |
0 commit comments