Recipient

sealed class Recipient

Specifies a recipient type for functions that can send to either type (e.g., org.inthewaves.kotlinsignald.Signal.react, org.inthewaves.kotlinsignald.Signal.remoteDelete, org.inthewaves.kotlinsignald.Signal.send, org.inthewaves.kotlinsignald.Signal.setExpiration, org.inthewaves.kotlinsignald.Signal.typing). Recipients are either to a Group or an Individual (or Self for Note to Self).

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Group(groupID: String, memberSubset: Collection<JsonAddress>) : Recipient

A group as the recipient, using the base64-encoded groupID as the identifier. groupIDs can be retrieved with listGroups or by reading the responses from joinGroup or getGroupLinkInfo.

Link copied to clipboard
class Individual(address: JsonAddress) : Recipient

A Signal user as the recipient.

Link copied to clipboard
object Self : Recipient

For sending to own user (i.e., Note to Self).

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard