mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Allow selecting schedule time for message
This commit is contained in:
@@ -7,6 +7,7 @@ import io.realm.annotations.PrimaryKey
|
||||
open class ScheduledMessage(
|
||||
@PrimaryKey var id: Long = 0,
|
||||
var date: Long = 0,
|
||||
var subId: Int = -1,
|
||||
var recipients: RealmList<String> = RealmList(),
|
||||
var sendAsGroup: Boolean = true,
|
||||
var body: String = "",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user