library / io.getstream.chat.android.livedata / ChannelData / <init>

<init>

ChannelData(c: Channel)

create a ChannelData object from a Channel object

ChannelData(type: String, channelId: String)

A class that only stores the channel data and not all the other channel state Using this prevents code bugs and issues caused by confusing the channel data vs the full channel object