Search in sources :

Example 1 with SmsSendJob

use of org.thoughtcrime.securesms.jobs.SmsSendJob in project Signal-Android by WhisperSystems.

the class MessageSender method sendSms.

private static void sendSms(Context context, Recipients recipients, long messageId) {
    JobManager jobManager = ApplicationContext.getInstance(context).getJobManager();
    jobManager.add(new SmsSendJob(context, messageId, recipients.getPrimaryRecipient().getName()));
}
Also used : SmsSendJob(org.thoughtcrime.securesms.jobs.SmsSendJob) JobManager(org.whispersystems.jobqueue.JobManager)

Aggregations

SmsSendJob (org.thoughtcrime.securesms.jobs.SmsSendJob)1 JobManager (org.whispersystems.jobqueue.JobManager)1