com.pubnub.api.models.consumer.objects.membership.PNChannelWithCustom.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubnub-kotlin Show documentation
Show all versions of pubnub-kotlin Show documentation
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!
package com.pubnub.api.models.consumer.objects.membership
@Deprecated(
message = "Use PNChannelMembership.Partial",
level = DeprecationLevel.WARNING,
replaceWith = ReplaceWith(
"PNChannelMembership.Partial(channelId = channel, custom = custom)",
"com.pubnub.api.models.consumer.objects.membership.PNChannelMembership"
)
)
data class PNChannelWithCustom(
override val channel: String,
override val custom: Any? = null
) : ChannelMembershipInput {
override val status: String? = null
companion object {
@Deprecated(
message = "Use PNChannelMembership.Partial",
level = DeprecationLevel.ERROR,
replaceWith = ReplaceWith(
"PNChannelMembership.Partial(channelId = channel, custom = custom)",
"com.pubnub.api.models.consumer.objects.membership.PNChannelMembership"
)
)
fun of(
channel: String,
custom: Any? = null
) = PNChannelMembership.Partial(channelId = channel, custom = custom)
}
}