|
|
@ -12,29 +12,20 @@ interface MessageDataProvider {
|
|
|
|
fun getMessageID(serverID: Long): Long?
|
|
|
|
fun getMessageID(serverID: Long): Long?
|
|
|
|
fun getMessageID(serverId: Long, threadId: Long): Pair<Long, Boolean>?
|
|
|
|
fun getMessageID(serverId: Long, threadId: Long): Pair<Long, Boolean>?
|
|
|
|
fun deleteMessage(messageID: Long, isSms: Boolean)
|
|
|
|
fun deleteMessage(messageID: Long, isSms: Boolean)
|
|
|
|
|
|
|
|
|
|
|
|
fun getDatabaseAttachment(attachmentId: Long): DatabaseAttachment?
|
|
|
|
fun getDatabaseAttachment(attachmentId: Long): DatabaseAttachment?
|
|
|
|
|
|
|
|
|
|
|
|
fun getAttachmentStream(attachmentId: Long): SessionServiceAttachmentStream?
|
|
|
|
fun getAttachmentStream(attachmentId: Long): SessionServiceAttachmentStream?
|
|
|
|
fun getAttachmentPointer(attachmentId: Long): SessionServiceAttachmentPointer?
|
|
|
|
fun getAttachmentPointer(attachmentId: Long): SessionServiceAttachmentPointer?
|
|
|
|
|
|
|
|
|
|
|
|
fun getSignalAttachmentStream(attachmentId: Long): SignalServiceAttachmentStream?
|
|
|
|
fun getSignalAttachmentStream(attachmentId: Long): SignalServiceAttachmentStream?
|
|
|
|
fun getScaledSignalAttachmentStream(attachmentId: Long): SignalServiceAttachmentStream?
|
|
|
|
fun getScaledSignalAttachmentStream(attachmentId: Long): SignalServiceAttachmentStream?
|
|
|
|
fun getSignalAttachmentPointer(attachmentId: Long): SignalServiceAttachmentPointer?
|
|
|
|
fun getSignalAttachmentPointer(attachmentId: Long): SignalServiceAttachmentPointer?
|
|
|
|
|
|
|
|
|
|
|
|
fun setAttachmentState(attachmentState: AttachmentState, attachmentId: Long, messageID: Long)
|
|
|
|
fun setAttachmentState(attachmentState: AttachmentState, attachmentId: Long, messageID: Long)
|
|
|
|
|
|
|
|
|
|
|
|
fun insertAttachment(messageId: Long, attachmentId: AttachmentId, stream : InputStream)
|
|
|
|
fun insertAttachment(messageId: Long, attachmentId: AttachmentId, stream : InputStream)
|
|
|
|
|
|
|
|
|
|
|
|
fun isOutgoingMessage(timestamp: Long): Boolean
|
|
|
|
fun isOutgoingMessage(timestamp: Long): Boolean
|
|
|
|
|
|
|
|
|
|
|
|
fun handleSuccessfulAttachmentUpload(attachmentId: Long, attachmentStream: SignalServiceAttachmentStream, attachmentKey: ByteArray, uploadResult: UploadResult)
|
|
|
|
fun handleSuccessfulAttachmentUpload(attachmentId: Long, attachmentStream: SignalServiceAttachmentStream, attachmentKey: ByteArray, uploadResult: UploadResult)
|
|
|
|
fun handleFailedAttachmentUpload(attachmentId: Long)
|
|
|
|
fun handleFailedAttachmentUpload(attachmentId: Long)
|
|
|
|
|
|
|
|
|
|
|
|
fun getMessageForQuote(timestamp: Long, author: Address): Pair<Long, Boolean>?
|
|
|
|
fun getMessageForQuote(timestamp: Long, author: Address): Pair<Long, Boolean>?
|
|
|
|
fun getAttachmentsAndLinkPreviewFor(mmsId: Long): List<Attachment>
|
|
|
|
fun getAttachmentsAndLinkPreviewFor(mmsId: Long): List<Attachment>
|
|
|
|
fun getMessageBodyFor(timestamp: Long, author: String): String
|
|
|
|
fun getMessageBodyFor(timestamp: Long, author: String): String
|
|
|
|
|
|
|
|
|
|
|
|
fun getAttachmentIDsFor(messageID: Long): List<Long>
|
|
|
|
fun getAttachmentIDsFor(messageID: Long): List<Long>
|
|
|
|
fun getLinkPreviewAttachmentIDFor(messageID: Long): Long?
|
|
|
|
fun getLinkPreviewAttachmentIDFor(messageID: Long): Long?
|
|
|
|
}
|
|
|
|
}
|