Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce SpaceId and UserId #51

Merged
merged 4 commits into from
Jun 14, 2022
Merged

Introduce SpaceId and UserId #51

merged 4 commits into from
Jun 14, 2022

Conversation

kleewho
Copy link
Contributor

@kleewho kleewho commented Jun 9, 2022

This brings some simplification to the naming of membership methods

fun PubNub.removeMemberships(
spaceId: SpaceId,
firstUserId: UserId,
vararg userIds: IUserId
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to introduce an interface here to avoid the problem of value classes not yet being supported by varargs as stated here Kotlin/KEEP#104 (comment). When it's no longer an issue we can remove it. I would appreciate some help with naming that though :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me current interface name is ok.

fun PubNub.removeMemberships(
spaceId: SpaceId,
firstUserId: UserId,
vararg userIds: IUserId
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me current interface name is ok.

Base automatically changed from CLEN-353 to master June 9, 2022 17:06
@kleewho kleewho requested a review from marcin-cebo June 10, 2022 09:41
@kleewho kleewho merged commit 55efdf7 into master Jun 14, 2022
@kleewho kleewho deleted the user_id_space_id branch June 14, 2022 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants