Chat

data class Chat(val message: String = "", val to: String? = null, val toCallsign: String? = null, val receiptForUid: String = "", val receiptType: Int = 0, val lang: String = "", val roomId: String = "", val voiceProfileId: String = "", val hasVoiceProfile: Boolean = false) : TakPacketV2Data.Payload(source)

ATAK GeoChat message — both regular chat (b-t-f) and delivered / read receipts (b-t-f-d / b-t-f-r). Receipts leave message empty and set receiptForUid + receiptType to link back to the outbound message's event UID.

Constructors

Link copied to clipboard
constructor(message: String = "", to: String? = null, toCallsign: String? = null, receiptForUid: String = "", receiptType: Int = 0, lang: String = "", roomId: String = "", voiceProfileId: String = "", hasVoiceProfile: Boolean = false)

Properties

Link copied to clipboard

True when the source CoT carried a <voice_profile_id/> element (with or without content). Lets the builder re-emit the marker faithfully even when voiceProfileId is empty. False on non-TAKTALK chats.

Link copied to clipboard

TAKTALK language tag from (e.g. "English"). Empty = absent.

Link copied to clipboard

The chat message body. Empty for receipt-only events.

Link copied to clipboard

UID of the chat message this event is acknowledging.

Link copied to clipboard

Receipt kind: 0 = none (regular chat), 1 = delivered, 2 = read.

Link copied to clipboard

TAKTALK room UUID from . Empty = absent.

Link copied to clipboard
val to: String?

Destination chatroom / group id, or null for "All Chat Rooms" (broadcast).

Link copied to clipboard

Sender's callsign as carried in __chat[senderCallsign]; null if absent.

Link copied to clipboard

TAKTALK voice profile pointer from . Often empty even when present (the empty element marker still signals TAKTALK origination). Use hasVoiceProfile to distinguish "empty marker present" from "field absent entirely".