SmsSubmitCase

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun checkConfirmationSms(fromDate: Date): Completable

Observe incoming SMS waiting for a response to this submission case.

Link copied to clipboard
fun compressDataSet(dataSet: String, orgUnit: String, period: String, attributeOptionComboUid: String): Single<String>

Generate the compressed message of a dataSet.

Link copied to clipboard
fun compressDeletion(itemToDeleteUid: String): Single<String>

Generate the compressed message of an event to delete.

Link copied to clipboard
fun compressEnrollment(enrollmentUid: String): Single<String>

Generate the compressed message of an enrollment.

Link copied to clipboard
fun compressRelationship(relationshipUid: String): Single<String>

Generate the compressed message of a relationship.

Link copied to clipboard
fun compressSimpleEvent(eventUid: String): Single<String>

Generate the compressed message of a simple event.

Link copied to clipboard
fun compressTrackerEvent(eventUid: String): Single<String>

Generate the compressed message of a tracker event.

Link copied to clipboard
fun convertDataSet(dataSet: String, orgUnit: String, period: String, attributeOptionComboUid: String): Single<Int>

Set a dataSet to send by SMS.

Link copied to clipboard
fun convertDeletion(itemToDeleteUid: String): Single<Int>

Set an event to delete by SMS.

Link copied to clipboard
fun convertEnrollment(enrollmentUid: String): Single<Int>

Set an enrollment to send by SMS.

Link copied to clipboard
fun convertRelationship(relationshipUid: String): Single<Int>

Set a relationship to send by SMS.

Link copied to clipboard
fun convertSimpleEvent(eventUid: String): Single<Int>

Set a simple event to send by SMS.

Link copied to clipboard
fun convertTrackerEvent(eventUid: String): Single<Int>

Set a tracker event to send by SMS.

Link copied to clipboard
fun isConfirmationMessage(sender: String, message: String): Single<Boolean>
Link copied to clipboard
fun markAsSentViaSMS(): Completable
Link copied to clipboard

Call this method to send the SMS. You must call a "convert" method before to specify the data to send. This method will fail if the app is not granted the permissions required to use SMS in the device: READ_PHONE_STATE, SEND_SMS, READ_SMS and RECEIVE_SMS.