From 4135eb823b318c5db7f7615a4a9a0eb5e5a9343e Mon Sep 17 00:00:00 2001 From: Ryan ZHAO Date: Wed, 25 Nov 2020 12:06:41 +1100 Subject: [PATCH] add skeleton for messaging kit --- .../org/session/messaging/jobs/AttachmentDownloadJob.kt | 4 ++++ .../java/org/session/messaging/jobs/AttachmentUploadJob.kt | 4 ++++ .../src/main/java/org/session/messaging/jobs/Job.kt | 4 ++++ .../src/main/java/org/session/messaging/jobs/JobDelegate.kt | 4 ++++ .../src/main/java/org/session/messaging/jobs/JobQueue.kt | 4 ++++ .../java/org/session/messaging/jobs/MessageReceiveJob.kt | 4 ++++ .../main/java/org/session/messaging/jobs/MessageSendJob.kt | 4 ++++ .../java/org/session/messaging/jobs/NotifyPNServerJob.kt | 4 ++++ .../org/session/messaging/messages/Message+Destination.kt | 2 ++ .../src/main/java/org/session/messaging/messages/Message.kt | 5 +++++ .../session/messaging/messages/control/ClosedGroupUpdate.kt | 4 ++++ .../session/messaging/messages/control/ControlMessage.kt | 6 ++++++ .../messaging/messages/control/ExpirationTimerUpdate.kt | 4 ++++ .../org/session/messaging/messages/control/ReadReceipt.kt | 4 ++++ .../session/messaging/messages/control/TypingIndicator.kt | 4 ++++ .../messaging/messages/control/unused/NullMessage.kt | 6 ++++++ .../messaging/messages/control/unused/SessionRequest.kt | 6 ++++++ .../messaging/messages/visible/VisibleMessage+Contatct.kt | 2 ++ .../messages/visible/VisibleMessage+LinkPreview.kt | 1 + .../messaging/messages/visible/VisibleMessage+Profile.kt | 2 ++ .../messaging/messages/visible/VisibleMessage+Quote.kt | 2 ++ .../session/messaging/messages/visible/VisibleMessage.kt | 6 ++++++ .../visible/attachments/VisibleMessage+Attachment.kt | 2 ++ .../sending_receiving/MessageReceiver+Decryption.kt | 2 ++ .../session/messaging/sending_receiving/MessageReceiver.kt | 4 ++++ .../messaging/sending_receiving/MessageReceiverDelegate.kt | 4 ++++ .../messaging/sending_receiving/MessageSender+Encryption.kt | 2 ++ .../session/messaging/sending_receiving/MessageSender.kt | 4 ++++ .../messaging/sending_receiving/MessageSenderDelegate.kt | 4 ++++ .../sending_receiving/Notification+MessageSender.kt | 2 ++ 30 files changed, 110 insertions(+) create mode 100644 sessionmessaging/src/main/java/org/session/messaging/jobs/AttachmentDownloadJob.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/jobs/AttachmentUploadJob.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/jobs/Job.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/jobs/JobDelegate.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/jobs/JobQueue.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/jobs/MessageReceiveJob.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/jobs/MessageSendJob.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/jobs/NotifyPNServerJob.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/Message+Destination.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/Message.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/control/ClosedGroupUpdate.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/control/ControlMessage.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/control/ExpirationTimerUpdate.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/control/ReadReceipt.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/control/TypingIndicator.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/control/unused/NullMessage.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/control/unused/SessionRequest.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Contatct.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+LinkPreview.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Profile.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Quote.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/messages/visible/attachments/VisibleMessage+Attachment.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiver+Decryption.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiver.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiverDelegate.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSender+Encryption.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSender.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSenderDelegate.kt create mode 100644 sessionmessaging/src/main/java/org/session/messaging/sending_receiving/Notification+MessageSender.kt diff --git a/sessionmessaging/src/main/java/org/session/messaging/jobs/AttachmentDownloadJob.kt b/sessionmessaging/src/main/java/org/session/messaging/jobs/AttachmentDownloadJob.kt new file mode 100644 index 0000000000..036502604b --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/jobs/AttachmentDownloadJob.kt @@ -0,0 +1,4 @@ +package org.session.messaging.jobs + +class AttachmentDownloadJob: Job { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/jobs/AttachmentUploadJob.kt b/sessionmessaging/src/main/java/org/session/messaging/jobs/AttachmentUploadJob.kt new file mode 100644 index 0000000000..8cd49dff8c --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/jobs/AttachmentUploadJob.kt @@ -0,0 +1,4 @@ +package org.session.messaging.jobs + +class AttachmentUploadJob : Job { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/jobs/Job.kt b/sessionmessaging/src/main/java/org/session/messaging/jobs/Job.kt new file mode 100644 index 0000000000..2913063b16 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/jobs/Job.kt @@ -0,0 +1,4 @@ +package org.session.messaging.jobs + +interface Job { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/jobs/JobDelegate.kt b/sessionmessaging/src/main/java/org/session/messaging/jobs/JobDelegate.kt new file mode 100644 index 0000000000..ba4f2c9afc --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/jobs/JobDelegate.kt @@ -0,0 +1,4 @@ +package org.session.messaging.jobs + +interface JobDelegate { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/jobs/JobQueue.kt b/sessionmessaging/src/main/java/org/session/messaging/jobs/JobQueue.kt new file mode 100644 index 0000000000..5e3fa3990e --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/jobs/JobQueue.kt @@ -0,0 +1,4 @@ +package org.session.messaging.jobs + +class JobQueue : JobDelegate { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/jobs/MessageReceiveJob.kt b/sessionmessaging/src/main/java/org/session/messaging/jobs/MessageReceiveJob.kt new file mode 100644 index 0000000000..cc12a399bf --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/jobs/MessageReceiveJob.kt @@ -0,0 +1,4 @@ +package org.session.messaging.jobs + +class MessageReceiveJob : Job { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/jobs/MessageSendJob.kt b/sessionmessaging/src/main/java/org/session/messaging/jobs/MessageSendJob.kt new file mode 100644 index 0000000000..a9c44b77b1 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/jobs/MessageSendJob.kt @@ -0,0 +1,4 @@ +package org.session.messaging.jobs + +class MessageSendJob : Job { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/jobs/NotifyPNServerJob.kt b/sessionmessaging/src/main/java/org/session/messaging/jobs/NotifyPNServerJob.kt new file mode 100644 index 0000000000..134ddb7c45 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/jobs/NotifyPNServerJob.kt @@ -0,0 +1,4 @@ +package org.session.messaging.jobs + +class NotifyPNServerJob : Job { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/Message+Destination.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/Message+Destination.kt new file mode 100644 index 0000000000..5847f726a1 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/Message+Destination.kt @@ -0,0 +1,2 @@ +package org.session.messaging.messages + diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/Message.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/Message.kt new file mode 100644 index 0000000000..b1ca1ce0ca --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/Message.kt @@ -0,0 +1,5 @@ +package org.session.messaging.messages + +open class Message { + +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/control/ClosedGroupUpdate.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/control/ClosedGroupUpdate.kt new file mode 100644 index 0000000000..e6c673c7ee --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/control/ClosedGroupUpdate.kt @@ -0,0 +1,4 @@ +package org.session.messaging.messages.control + +class ClosedGroupUpdate : ControlMessage() { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/control/ControlMessage.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/control/ControlMessage.kt new file mode 100644 index 0000000000..670553854c --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/control/ControlMessage.kt @@ -0,0 +1,6 @@ +package org.session.messaging.messages.control + +import org.session.messaging.messages.Message + +open class ControlMessage : Message() { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/control/ExpirationTimerUpdate.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/control/ExpirationTimerUpdate.kt new file mode 100644 index 0000000000..24d9140792 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/control/ExpirationTimerUpdate.kt @@ -0,0 +1,4 @@ +package org.session.messaging.messages.control + +class ExpirationTimerUpdate : ControlMessage() { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/control/ReadReceipt.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/control/ReadReceipt.kt new file mode 100644 index 0000000000..74f96aec81 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/control/ReadReceipt.kt @@ -0,0 +1,4 @@ +package org.session.messaging.messages.control + +class ReadReceipt : ControlMessage() { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/control/TypingIndicator.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/control/TypingIndicator.kt new file mode 100644 index 0000000000..9610e0b88d --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/control/TypingIndicator.kt @@ -0,0 +1,4 @@ +package org.session.messaging.messages.control + +class TypingIndicator : ControlMessage() { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/control/unused/NullMessage.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/control/unused/NullMessage.kt new file mode 100644 index 0000000000..a791c32ca3 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/control/unused/NullMessage.kt @@ -0,0 +1,6 @@ +package org.session.messaging.messages.control.unused + +import org.session.messaging.messages.control.ControlMessage + +class NullMessage : ControlMessage() { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/control/unused/SessionRequest.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/control/unused/SessionRequest.kt new file mode 100644 index 0000000000..51f99a7c16 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/control/unused/SessionRequest.kt @@ -0,0 +1,6 @@ +package org.session.messaging.messages.control.unused + +import org.session.messaging.messages.control.ControlMessage + +class SessionRequest : ControlMessage() { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Contatct.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Contatct.kt new file mode 100644 index 0000000000..44951d4ad1 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Contatct.kt @@ -0,0 +1,2 @@ +package org.session.messaging.messages.visible + diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+LinkPreview.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+LinkPreview.kt new file mode 100644 index 0000000000..2f8d393b0c --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+LinkPreview.kt @@ -0,0 +1 @@ +package org.session.messaging.messages.visible diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Profile.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Profile.kt new file mode 100644 index 0000000000..44951d4ad1 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Profile.kt @@ -0,0 +1,2 @@ +package org.session.messaging.messages.visible + diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Quote.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Quote.kt new file mode 100644 index 0000000000..44951d4ad1 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage+Quote.kt @@ -0,0 +1,2 @@ +package org.session.messaging.messages.visible + diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage.kt new file mode 100644 index 0000000000..0b332aaaca --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/VisibleMessage.kt @@ -0,0 +1,6 @@ +package org.session.messaging.messages.visible + +import org.session.messaging.messages.Message + +class VisibleMessage : Message() { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/messages/visible/attachments/VisibleMessage+Attachment.kt b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/attachments/VisibleMessage+Attachment.kt new file mode 100644 index 0000000000..deb32fabfe --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/messages/visible/attachments/VisibleMessage+Attachment.kt @@ -0,0 +1,2 @@ +package org.session.messaging.messages.visible.attachments + diff --git a/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiver+Decryption.kt b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiver+Decryption.kt new file mode 100644 index 0000000000..72036e203d --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiver+Decryption.kt @@ -0,0 +1,2 @@ +package org.session.messaging.sending_receiving + diff --git a/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiver.kt b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiver.kt new file mode 100644 index 0000000000..5764d952b9 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiver.kt @@ -0,0 +1,4 @@ +package org.session.messaging.sending_receiving + +object MessageReceiver { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiverDelegate.kt b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiverDelegate.kt new file mode 100644 index 0000000000..d3f37719d3 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageReceiverDelegate.kt @@ -0,0 +1,4 @@ +package org.session.messaging.sending_receiving + +interface MessageReceiverDelegate { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSender+Encryption.kt b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSender+Encryption.kt new file mode 100644 index 0000000000..72036e203d --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSender+Encryption.kt @@ -0,0 +1,2 @@ +package org.session.messaging.sending_receiving + diff --git a/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSender.kt b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSender.kt new file mode 100644 index 0000000000..87941f7aea --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSender.kt @@ -0,0 +1,4 @@ +package org.session.messaging.sending_receiving + +object MessageSender { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSenderDelegate.kt b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSenderDelegate.kt new file mode 100644 index 0000000000..cee5622c47 --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/MessageSenderDelegate.kt @@ -0,0 +1,4 @@ +package org.session.messaging.sending_receiving + +interface MessageSenderDelegate { +} \ No newline at end of file diff --git a/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/Notification+MessageSender.kt b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/Notification+MessageSender.kt new file mode 100644 index 0000000000..72036e203d --- /dev/null +++ b/sessionmessaging/src/main/java/org/session/messaging/sending_receiving/Notification+MessageSender.kt @@ -0,0 +1,2 @@ +package org.session.messaging.sending_receiving +