manageChannelMembers

abstract fun manageChannelMembers(channel: String, usersToSet: Collection<MemberInput>, userIdsToRemove: Collection<String>, limit: Int? = null, page: PNPage? = null, filter: String? = null, sort: Collection<PNSortKey<PNMemberKey>> = listOf(), include: MemberInclude = MemberInclude()): ManageChannelMembers

Set or remove members in a channel.

Parameters

channel

Channel name

usersToSet

Collection of members to add to the channel. @see com.pubnub.api.models.consumer.objects.member.PNMember.Partial

userIdsToRemove

Members to remove from channel.

limit

Number of objects to return in the response. Default is 100, which is also the maximum value. Set limit to 0 (zero) and includeCount to true if you want to retrieve only a result count.

page

Use for pagination. - PNNext : Previously-returned cursor bookmark for fetching the next page. - PNPrev : Previously-returned cursor bookmark for fetching the previous page. Ignored if you also supply the start parameter.

filter

Expression used to filter the results. Only objects whose properties satisfy the given expression are returned.

sort

List of properties to sort by. Available options are id, name, and updated. @see PNAsc, PNDesc

include

Request specific elements to be available in response. Use com.pubnub.api.models.consumer.objects.member.MemberInclude to easily create the desired configuration.


abstract fun manageChannelMembers(channel: String, uuidsToSet: Collection<MemberInput>, uuidsToRemove: Collection<String>, limit: Int? = null, page: PNPage? = null, filter: String? = null, sort: Collection<PNSortKey<PNMemberKey>> = listOf(), includeCount: Boolean = false, includeCustom: Boolean = false, includeUUIDDetails: PNUUIDDetailsLevel? = null, includeUUIDType: Boolean = false): ManageChannelMembers

Deprecated

This function is deprecated. Use the new manageChannelMembers(channels, uuidsToSet, uuidsToRemove, limit, page, filter, sort, MemberInclude(...))

Replace with

manageChannelMembers(channels, uuidsToSet, uuidsToRemove, limit, page, filter, sort, com.pubnub.api.models.consumer.objects.member.MemberInclude(includeTotalCount = includeCount, includeCustom = includeCustom, includeUser = true, includeUserCustom = true, includeUserType = includeUUIDType)

Set or remove members in a channel.

Parameters

channel

Channel name

uuidsToSet

Collection of members to add to the channel. @see com.pubnub.api.models.consumer.objects.member.PNMember.Partial

uuidsToRemove

Members to remove from channel.

limit

Number of objects to return in the response. Default is 100, which is also the maximum value. Set limit to 0 (zero) and includeCount to true if you want to retrieve only a result count.

page

Use for pagination. - PNNext : Previously-returned cursor bookmark for fetching the next page. - PNPrev : Previously-returned cursor bookmark for fetching the previous page. Ignored if you also supply the start parameter.

filter

Expression used to filter the results. Only objects whose properties satisfy the given expression are returned.

sort

List of properties to sort by. Available options are id, name, and updated. @see PNAsc, PNDesc

includeCount

Request totalCount to be included in paginated response. By default, totalCount is omitted. Default is false.

includeCustom

Include respective additional fields in the response.

includeUUIDDetails

Include custom fields for UUIDs metadata.

includeType

Include the type field for UUID metadata