Format domain module

This commit is contained in:
moezbhatti
2019-04-10 22:12:57 -04:00
parent b64672c472
commit cc7f573e54
11 changed files with 73 additions and 34 deletions
@@ -57,7 +57,14 @@ interface MessageRepository {
fun markUnread(vararg threadIds: Long)
fun sendMessage(subId: Int, threadId: Long, addresses: List<String>, body: String, attachments: List<Attachment>, delay: Int = 0)
fun sendMessage(
subId: Int,
threadId: Long,
addresses: List<String>,
body: String,
attachments: List<Attachment>,
delay: Int = 0
)
/**
* Attempts to send the SMS message. This can be called if the message has already been persisted
@@ -26,8 +26,14 @@ interface ScheduledMessageRepository {
/**
* Saves a scheduled message
*/
fun saveScheduledMessage(date: Long, subId: Int, recipients: List<String>, sendAsGroup: Boolean, body: String,
attachments: List<String>)
fun saveScheduledMessage(
date: Long,
subId: Int,
recipients: List<String>,
sendAsGroup: Boolean,
body: String,
attachments: List<String>
)
/**
* Returns all of the scheduled messages, sorted chronologically