Package org.inthewaves.kotlinsignald.clientprotocol.v0.structures

Types

Link copied to clipboard
data class AnswerMessage(id: Long?, sdp: String?, opaque: String?)
Link copied to clipboard
data class BusyMessage(id: Long?)
Link copied to clipboard
data class ConfigurationMessage(readReceipts: Optional?, unidentifiedDeliveryIndicators: Optional?, typingIndicators: Optional?, linkPreviews: Optional?)
Link copied to clipboard
data class GroupAccessControl(link: String?, attributes: String?, members: String?)

group access control settings. Options for each controlled action are: UNKNOWN, ANY, MEMBER, ADMINISTRATOR, UNSATISFIABLE and UNRECOGNIZED

Link copied to clipboard
data class GroupMember(uuid: String?, role: String?, joinedRevision: Int?)
Link copied to clipboard
data class HangupMessage(id: Long?, type: Type?, deviceId: Int?, legacy: Boolean?)
Link copied to clipboard
data class IceUpdateMessage(id: Long?, opaque: String?, sdp: String?)
Link copied to clipboard
data class JsonAccount(deviceId: Int?, username: String?, filename: String?, uuid: String?, registered: Boolean?, hasKeys: Boolean?, subscribed: Boolean?)
Link copied to clipboard
data class JsonAccountList(accounts: List<JsonAccount>)
Link copied to clipboard
data class JsonAddress(number: String?, uuid: String?, relay: String?)
Link copied to clipboard
data class JsonAttachment(contentType: String?, id: String?, size: Int?, storedFilename: String?, filename: String?, customFilename: String?, caption: String?, width: Int?, height: Int?, voiceNote: Boolean?, key: String?, digest: String?, blurhash: String?)
Link copied to clipboard
data class JsonBlockedListMessage(addresses: List<JsonAddress>, groupIds: List<String>)
Link copied to clipboard
data class JsonCallMessage(offerMessage: OfferMessage?, answerMessage: AnswerMessage?, busyMessage: BusyMessage?, hangupMessage: HangupMessage?, iceUpdateMessages: List<IceUpdateMessage>, destinationDeviceId: Int?, isMultiRing: Boolean?)
Link copied to clipboard
data class JsonDataMessage(timestamp: Long?, attachments: List<JsonAttachment>, body: String?, group: JsonGroupInfo?, groupV2: JsonGroupV2Info?, endSession: Boolean?, expiresInSeconds: Int?, profileKeyUpdate: Boolean?, quote: JsonQuote?, contacts: List<SharedContact>, previews: List<JsonPreview>, sticker: JsonSticker?, viewOnce: Boolean?, reaction: JsonReaction?, remoteDelete: RemoteDelete?, mentions: List<JsonMention>)
Link copied to clipboard
data class JsonGroupInfo(groupId: String?, members: List<JsonAddress>, name: String?, type: String?, avatarId: Long?)
Link copied to clipboard
data class JsonGroupV2Info(id: String?, revision: Int?, title: String?, description: String?, avatar: String?, timer: Int?, members: List<JsonAddress>, pendingMembers: List<JsonAddress>, requestingMembers: List<JsonAddress>, inviteLink: String?, accessControl: GroupAccessControl?, memberDetail: List<GroupMember>, pendingMemberDetail: List<GroupMember>)
Link copied to clipboard
data class JsonMention(uuid: String?, start: Int?, length: Int?)
Link copied to clipboard
data class JsonMessageEnvelope(username: String?, uuid: String?, source: JsonAddress?, sourceDevice: Int?, type: String?, relay: String?, timestamp: Long?, timestampISO: String?, serverTimestamp: Long?, serverDeliveredTimestamp: Long?, hasLegacyMessage: Boolean?, hasContent: Boolean?, isUnidentifiedSender: Boolean?, dataMessage: JsonDataMessage?, syncMessage: JsonSyncMessage?, callMessage: JsonCallMessage?, receipt: JsonReceiptMessage?, typing: JsonTypingMessage?)
Link copied to clipboard
data class JsonMessageRequestResponseMessage(person: JsonAddress?, groupId: String?, type: String?)
Link copied to clipboard
data class JsonPreview(url: String?, title: String?, attachment: JsonAttachment?)
Link copied to clipboard
data class JsonQuote(id: Long?, author: JsonAddress?, text: String?, attachments: List<JsonQuotedAttachment>, mentions: List<JsonMention>)

A quote is a reply to a previous message. ID is the sent time of the message being replied to

Link copied to clipboard
data class JsonQuotedAttachment(contentType: String?, fileName: String?, thumbnail: JsonAttachment?)
Link copied to clipboard
data class JsonReaction(emoji: String?, remove: Boolean?, targetAuthor: JsonAddress?, targetSentTimestamp: Long?)
Link copied to clipboard
data class JsonReadMessage(sender: JsonAddress?, timestamp: Long?)
Link copied to clipboard
data class JsonReceiptMessage(type: String?, timestamps: List<Long>, when: Long?)
Link copied to clipboard
data class JsonSentTranscriptMessage(destination: JsonAddress?, timestamp: Long?, expirationStartTimestamp: Long?, message: JsonDataMessage?, unidentifiedStatus: Map<String, Boolean>?, isRecipientUpdate: Boolean?)
Link copied to clipboard
data class JsonSticker(packID: String?, packKey: String?, stickerID: Int?, attachment: JsonAttachment?, image: String?)
Link copied to clipboard
data class JsonStickerPackOperationMessage(packID: String?, packKey: String?, type: String?)

https://github.com/signalapp/Signal-Android/blob/44d014c4459e9ac34b74800002fa86b402d0501c/libsignal/service/src/main/java/org/whispersystems/signalservice/api/messages/multidevice/StickerPackOperationMessage.java

Link copied to clipboard
data class JsonSyncMessage(sent: JsonSentTranscriptMessage?, contacts: JsonAttachment?, contactsComplete: Boolean?, groups: JsonAttachment?, blockedList: JsonBlockedListMessage?, request: String?, readMessages: List<JsonReadMessage>, viewOnceOpen: JsonViewOnceOpenMessage?, verified: JsonVerifiedMessage?, configuration: ConfigurationMessage?, stickerPackOperations: List<JsonStickerPackOperationMessage>, fetchType: String?, messageRequestResponse: JsonMessageRequestResponseMessage?)
Link copied to clipboard
data class JsonTypingMessage(action: String?, timestamp: Long?, groupId: String?)
Link copied to clipboard
data class JsonVerifiedMessage(destination: JsonAddress?, identityKey: String?, verified: String?, timestamp: Long?)
Link copied to clipboard
data class JsonViewOnceOpenMessage(sender: JsonAddress?, timestamp: Long?)
Link copied to clipboard
data class Name(display: Optional?, given: Optional?, family: Optional?, prefix: Optional?, suffix: Optional?, middle: Optional?)
Link copied to clipboard
data class OfferMessage(id: Long?, sdp: String?, type: Type?, opaque: String?)
Link copied to clipboard
data class Optional(empty: Boolean?, present: Boolean?)
Link copied to clipboard
data class RemoteDelete(targetSentTimestamp: Long?)
Link copied to clipboard
data class SharedContact(name: Name?, avatar: Optional?, phone: Optional?, email: Optional?, address: Optional?, organization: Optional?)
Link copied to clipboard
sealed class SignaldResponseBodyV0
Link copied to clipboard
class Type
Link copied to clipboard
sealed class TypedExceptionV0 : SignaldException