All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pubnub.api.models.consumer.objects.member.PNMember.kt Maven / Gradle / Ivy

Go to download

PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter second!

There is a newer version: 10.2.0
Show newest version
package com.pubnub.api.models.consumer.objects.member

import com.pubnub.api.models.consumer.objects.uuid.PNUUIDMetadata
import com.pubnub.internal.models.consumer.objects.member.PNMember

data class PNMember(
    val uuid: PNUUIDMetadata?,
    val custom: Any? = null,
    val updated: String,
    val eTag: String,
    val status: String?,
) {
    data class Partial(
        val uuidId: String,
        override val custom: Any? = null,
        override val status: String? = null,
    ) : MemberInput {
        override val uuid: String = uuidId
    }

    companion object {
        fun from(data: PNMember): com.pubnub.api.models.consumer.objects.member.PNMember {
            return com.pubnub.api.models.consumer.objects.member.PNMember(
                data.uuid,
                data.custom,
                data.updated,
                data.eTag,
                data.status,
            )
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy