diff --git a/pubnub-chat-api/src/commonMain/kotlin/com/pubnub/chat/Event.kt b/pubnub-chat-api/src/commonMain/kotlin/com/pubnub/chat/Event.kt index 9bd9288b..27878def 100644 --- a/pubnub-chat-api/src/commonMain/kotlin/com/pubnub/chat/Event.kt +++ b/pubnub-chat-api/src/commonMain/kotlin/com/pubnub/chat/Event.kt @@ -19,7 +19,9 @@ interface Event { val timetoken: Long /** - * Data passed in an event (of [EventContent] subtype) that differ depending on the emitted event type ([EventContent.Typing]], [EventContent.Report], [EventContent.Receipt], [EventContent.Mention], [EventContent.Invite], [EventContent.Custom], [EventContent.Moderation], or [EventContent.TextMessageContent]). + * Data passed in an event (of [EventContent] subtype) that differs depending on the emitted event type + * ([EventContent.Typing]], [EventContent.Report], [EventContent.Receipt], [EventContent.Mention], + * [EventContent.Invite], [EventContent.Custom], [EventContent.Moderation], or [EventContent.TextMessageContent]). */ val payload: T diff --git a/pubnub-chat-api/src/commonMain/kotlin/com/pubnub/chat/Membership.kt b/pubnub-chat-api/src/commonMain/kotlin/com/pubnub/chat/Membership.kt index 84ecbd2d..c43e2805 100644 --- a/pubnub-chat-api/src/commonMain/kotlin/com/pubnub/chat/Membership.kt +++ b/pubnub-chat-api/src/commonMain/kotlin/com/pubnub/chat/Membership.kt @@ -4,6 +4,9 @@ import com.pubnub.api.models.consumer.pubsub.objects.PNSetMembershipEvent import com.pubnub.kmp.CustomObject import com.pubnub.kmp.PNFuture +/** + * Membership is an object that refers to a single user-channel relationship in a chat. + */ interface Membership { /** * Reference to the main Chat object. @@ -88,6 +91,7 @@ interface Membership { /** * Get a new [Membership] object updated with the values received in the [update]. * + * @param update Data received from the PubNub [com.pubnub.api.v2.callbacks.EventListener.objects] callback. * @return A [Membership] updated with values that are present in the [update] */ operator fun plus(update: PNSetMembershipEvent): Membership diff --git a/pubnub-kotlin b/pubnub-kotlin index 7fed172c..e0f2a7b2 160000 --- a/pubnub-kotlin +++ b/pubnub-kotlin @@ -1 +1 @@ -Subproject commit 7fed172c882e26795f2c9b481f37146487338a30 +Subproject commit e0f2a7b2ea767b2c7faf27ca35c19afe12f1f046