getChannel

fun getChannel(cid: String, messageLimit: Int = 0, memberLimit: Int = 0, state: Boolean = false): Call<Channel>

Gets the channel from the server based on cid.

Parameters

cid

The full channel id. ie messaging:123.

messageLimit

The number of messages to retrieve for the channel.

memberLimit

The number of members to retrieve for the channel.

state

if true returns the Channel state.


fun getChannel(channelType: String, channelId: String, messageLimit: Int = 0, memberLimit: Int = 0, state: Boolean = false): Call<Channel>

Gets the channel from the server based on channelType and channelId.

Parameters

channelType

The channel type.

channelId

The channel id.

messageLimit

The number of messages to retrieve for the channel.

memberLimit

The number of members to retrieve for the channel.

state

if true returns the Channel state.