Skip to content

Commit

Permalink
Fix parameter name in manageChannelMembers
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-cebo committed Dec 5, 2024
1 parent c8ae89e commit be20f9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ actual interface PubNub : StatusEmitter, EventEmitter {
*
* @param channel Channel name
* @param usersToSet Collection of members to add to the channel. @see [com.pubnub.api.models.consumer.objects.member.PNMember.Partial]
* @param usersToRemove Members to remove from channel.
* @param usersIdsToRemove Members to remove from channel.
* @param 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.
Expand All @@ -1886,7 +1886,7 @@ actual interface PubNub : StatusEmitter, EventEmitter {
fun manageChannelMembers(
channel: String,
usersToSet: Collection<MemberInput>,
usersToRemove: Collection<String>,
usersIdsToRemove: Collection<String>,
limit: Int? = null,
page: PNPage? = null,
filter: String? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,8 @@ class ObjectsIntegrationTest : BaseIntegrationTest() {
pubnub.manageChannelMembers(
channel = channel,
usersToSet = listOf(PNMember.Partial(uuidId = testUserId01, status = status01, type = type01)),
usersToRemove = listOf(),
include = MemberInclude(
includeStatus = true,
includeType = true,
)
usersIdsToRemove = listOf(),
include = MemberInclude(includeStatus = true, includeType = true)
).sync()

val getAllResult =
Expand Down Expand Up @@ -585,7 +582,7 @@ class ObjectsIntegrationTest : BaseIntegrationTest() {
pubnub.manageChannelMembers(
channel = channel,
usersToSet = listOf(),
usersToRemove = listOf(testUserId01, testUserId02),
usersIdsToRemove = listOf(testUserId01, testUserId02),
).sync().data

assertThat(removeResult, not(containsInAnyOrder(testUuidMatcher, otherTestUuidMatcher)))
Expand All @@ -601,7 +598,7 @@ class ObjectsIntegrationTest : BaseIntegrationTest() {
pubnub.manageChannelMembers(
channel = channel,
usersToSet = listOf(PNMember.Partial(uuidId = testUserId01, status = status01)),
usersToRemove = listOf(),
usersIdsToRemove = listOf(),
).sync()

val getAllResult =
Expand Down Expand Up @@ -635,7 +632,7 @@ class ObjectsIntegrationTest : BaseIntegrationTest() {
pubnub.manageChannelMembers(
channel = channel,
usersToSet = listOf(),
usersToRemove = listOf(testUserId01, testUserId02),
usersIdsToRemove = listOf(testUserId01, testUserId02),
).sync().data

assertThat(removeResult, not(containsInAnyOrder(testUuidMatcher, otherTestUuidMatcher)))
Expand Down

0 comments on commit be20f9e

Please sign in to comment.