ChannelWatcherListQuery
A query type used for fetching a channel's watchers from the backend.
public struct ChannelWatcherListQuery: Encodable
Learn more about watchers in our documentation here
Inheritance
Encodable
Initializers
init(cid:pagination:)
Creates new ChannelWatcherListQuery
instance.
public init(cid: ChannelId, pagination: Pagination = .init(pageSize: .channelWatchersPageSize))
Parameters
cid
: The channel identifier.pagination
: Pagination parameters for fetching watchers. Defaults to fetching first 30 watchers.
Properties
pagination
A pagination for watchers (see Pagination
).
public var pagination: Pagination
cid
ChannelId
this query handles.
public var cid: ChannelId
Methods
encode(to:)
public func encode(to encoder: Encoder) throws