Allow selecting schedule time for message

This commit is contained in:
Moez Bhatti
2018-06-26 17:00:42 -04:00
parent 431edfe2ee
commit 75b728c301
11 changed files with 189 additions and 32 deletions
@@ -1,7 +1,6 @@
package com.moez.QKSMS.repository
import com.moez.QKSMS.model.ScheduledMessage
import io.realm.RealmList
import io.realm.RealmResults
interface ScheduledMessageRepository {
@@ -9,8 +8,8 @@ interface ScheduledMessageRepository {
/**
* Saves a scheduled message and returns the id if successful
*/
fun saveScheduledMessage(date: Long, recipients: RealmList<String>, sendAsGroup: Boolean, body: String,
attachments: RealmList<String>): Long
fun saveScheduledMessage(date: Long, subId: Int, recipients: List<String>, sendAsGroup: Boolean, body: String,
attachments: List<String>): Long
/**
* Returns all of the scheduled messages, sorted chronologically