removeMemberships

expect abstract fun removeMemberships(channels: List<String>, userId: String? = null, limit: Int? = null, page: PNPage? = null, filter: String? = null, sort: Collection<PNSortKey<PNMembershipKey>> = listOf(), include: MembershipInclude = MembershipInclude()): ManageMemberships
expect abstract fun removeMemberships(channels: List<String>, uuid: String? = null, limit: Int? = null, page: PNPage? = null, filter: String? = null, sort: Collection<PNSortKey<PNMembershipKey>> = listOf(), includeCount: Boolean = false, includeCustom: Boolean = false, includeChannelDetails: PNChannelDetailsLevel? = null, includeType: Boolean = false): ManageMemberships
actual abstract fun removeMemberships(channels: List<String>, userId: String?, limit: Int?, page: PNPage?, filter: String?, sort: Collection<PNSortKey<PNMembershipKey>>, include: MembershipInclude): ManageMemberships

Remove channel memberships for a UUID.

Parameters

channels

Channels to remove from membership.

uuid

Unique user identifier. If not supplied then current user’s uuid is used.

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.membership.MembershipInclude to easily create the desired configuration.


actual abstract fun removeMemberships(channels: List<String>, uuid: String?, limit: Int?, page: PNPage?, filter: String?, sort: Collection<PNSortKey<PNMembershipKey>>, includeCount: Boolean, includeCustom: Boolean, includeChannelDetails: PNChannelDetailsLevel?, includeType: Boolean): ManageMemberships

Deprecated

This function is deprecated. Use the new removeMemberships(channels, userId, limit, page, filter, sort, MembershipInclude(...))

Replace with

removeMemberships(channels, userId, limit, page, filter, sort, com.pubnub.api.models.consumer.objects.membership.MembershipInclude(includeTotalCount = includeCount, includeCustom = includeCustom, includeChannel = true, includeChannelCustom = true, includeType = includeType))

Remove channel memberships for a UUID.

Parameters

channels

Channels to remove from membership.

uuid

Unique user identifier. If not supplied then current user’s uuid is used.

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.

includeChannelDetails

Include custom fields for channels metadata.

actual abstract fun removeMemberships(channels: List<String>, userId: String?, limit: Int?, page: PNPage?, filter: String?, sort: Collection<PNSortKey<PNMembershipKey>>, include: MembershipInclude): ManageMemberships
actual abstract fun removeMemberships(channels: List<String>, uuid: String?, limit: Int?, page: PNPage?, filter: String?, sort: Collection<PNSortKey<PNMembershipKey>>, includeCount: Boolean, includeCustom: Boolean, includeChannelDetails: PNChannelDetailsLevel?, includeType: Boolean): ManageMemberships