StreamCallId

constructor(type: String, id: String, cid: String = when { type.isNotEmpty() && id.isNotEmpty() -> "$type:$id" id.isNotEmpty() -> id else -> error("[StreamCallId] invalid arguments; type=$type, id=$id") }, isValid: Boolean = type.isNotEmpty() || id.isNotEmpty())

Parameters

type

A call type.

id

A call id.

cid

A cid, which consists of the type and id. For instance, default:123

isValid

Represents is the cid is valid or not.