//
// Copyright © 2021 Stream.io Inc. All rights reserved.
//

import Foundation

extension Endpoint {
    static func channelMembers<ExtraData: UserExtraData>(
        query: _ChannelMemberListQuery<ExtraData>
    ) -> Endpoint<ChannelMemberListPayload<ExtraData>> {
        .init(
            path: "members",
            method: .get,
            queryItems: nil,
            requiresConnectionId: false,
            body: ["payload": query]
        )
    }
}
