MessageMapper

Functions

Link copied to clipboard
fun fromAssetStatus(id: String, conversationId: QualifiedIDEntity, transferStatusEntity: AssetTransferStatusEntity): MessageAssetStatusEntity
Link copied to clipboard
fun toEntityAssetMessageFromView(id: String, conversationId: QualifiedIDEntity, contentType: MessageEntity.ContentType, date: <Error class: unknown class>, visibility: MessageEntity.Visibility, senderUserId: QualifiedIDEntity, isEphemeral: Boolean, senderName: String?, selfUserId: QualifiedIDEntity?, isSelfMessage: Boolean, assetId: String?, assetMimeType: String?, assetHeight: Int?, assetWidth: Int?, decodedAssetPath: String?): AssetMessageEntity
Link copied to clipboard
fun toEntityMessageFromView(id: String, conversationId: QualifiedIDEntity, contentType: MessageEntity.ContentType, date: <Error class: unknown class>, senderUserId: QualifiedIDEntity, senderClientId: String?, status: MessageEntity.Status, lastEditTimestamp: <Error class: unknown class>?, visibility: MessageEntity.Visibility, expectsReadConfirmation: Boolean, expireAfterMillis: Long?, selfDeletionEndDate: <Error class: unknown class>?, readCount: Long, senderName: String?, senderHandle: String?, senderEmail: String?, senderPhone: String?, senderAccentId: Int, senderTeamId: String?, senderConnectionStatus: ConnectionEntity.State, senderPreviewAssetId: QualifiedIDEntity?, senderCompleteAssetId: QualifiedIDEntity?, senderAvailabilityStatus: UserAvailabilityStatusEntity, senderUserType: UserTypeEntity, senderBotService: BotIdEntity?, senderIsDeleted: Boolean, senderExpiresAt: <Error class: unknown class>?, senderDefederated: Boolean, senderSupportedProtocols: Set<SupportedProtocolEntity>?, senderActiveOneOnOneConversationId: QualifiedIDEntity?, senderIsProteusVerified: Long, senderIsUnderLegalHold: Long, isSelfMessage: Boolean, text: String?, isQuotingSelfUser: Boolean?, assetSize: Long?, assetName: String?, assetMimeType: String?, assetOtrKey: ByteArray?, assetSha256: ByteArray?, assetId: String?, assetToken: String?, assetDomain: String?, assetEncryptionAlgorithm: String?, assetWidth: Int?, assetHeight: Int?, assetDuration: Long?, assetNormalizedLoudness: ByteArray?, callerId: QualifiedIDEntity?, memberChangeList: List<QualifiedIDEntity>?, memberChangeType: MessageEntity.MemberChangeType?, unknownContentTypeName: String?, unknownContentData: ByteArray?, restrictedAssetMimeType: String?, restrictedAssetSize: Long?, restrictedAssetName: String?, failedToDecryptData: ByteArray?, decryptionErrorCode: Long?, isDecryptionResolved: Boolean?, conversationName: String?, allReactionsJson: String, selfReactionsJson: String, mentions: String, quotedMessageId: String?, quotedSenderId: QualifiedIDEntity?, isQuoteVerified: Boolean?, quotedSenderName: String?, quotedMessageDateTime: <Error class: unknown class>?, quotedMessageEditTimestamp: <Error class: unknown class>?, quotedMessageVisibility: MessageEntity.Visibility?, quotedMessageContentType: MessageEntity.ContentType?, quotedTextBody: String?, quotedAssetMimeType: String?, quotedAssetName: String?, quotedLocationName: String?, newConversationReceiptMode: Boolean?, conversationReceiptModeChanged: Boolean?, messageTimerChanged: Long?, recipientsFailedWithNoClientsList: List<QualifiedIDEntity>?, recipientsFailedDeliveryList: List<QualifiedIDEntity>?, buttonsJson: String, federationDomainList: List<String>?, federationType: MessageEntity.FederationType?, conversationProtocolChanged: ConversationEntity.Protocol?, latitude: Float?, longitude: Float?, locationName: String?, locationZoom: Int?, legalHoldMemberList: List<QualifiedIDEntity>?, legalHoldType: MessageEntity.LegalHoldType?): MessageEntity
Link copied to clipboard
fun toNotificationEntity(id: String, conversationId: QualifiedIDEntity, contentType: MessageEntity.ContentType, date: <Error class: unknown class>, senderUserId: QualifiedIDEntity, isSelfDelete: Boolean, senderName: String?, senderPreviewAssetId: QualifiedIDEntity?, conversationName: String?, text: String?, isQuotingSelf: Boolean?, assetMimeType: String?, mutedStatus: ConversationEntity.MutedStatus, conversationType: ConversationEntity.Type, degradedConversationNotified: Boolean, legalHoldStatus: ConversationEntity.LegalHoldStatus, legalHoldStatusChangeNotified: Boolean): NotificationMessageEntity
Link copied to clipboard
fun toPreviewEntity(id: String, conversationId: QualifiedIDEntity, contentType: MessageEntity.ContentType, date: <Error class: unknown class>, visibility: MessageEntity.Visibility, senderUserId: UserIDEntity, isEphemeral: Boolean, senderName: String?, senderConnectionStatus: ConnectionEntity.State?, senderIsDeleted: Boolean?, selfUserId: QualifiedIDEntity?, isSelfMessage: Boolean, memberChangeList: List<QualifiedIDEntity>?, memberChangeType: MessageEntity.MemberChangeType?, updatedConversationName: String?, conversationName: String?, isMentioningSelfUser: Boolean, isQuotingSelfUser: Boolean?, text: String?, assetMimeType: String?, isUnread: Boolean, isNotified: Long, mutedStatus: ConversationEntity.MutedStatus?, conversationType: ConversationEntity.Type?): MessagePreviewEntity