Search in sources :

Example 6 with JobManager

use of org.whispersystems.jobqueue.JobManager in project Signal-Android by WhisperSystems.

the class MessageSender method sendMms.

private static void sendMms(Context context, long messageId) {
    JobManager jobManager = ApplicationContext.getInstance(context).getJobManager();
    jobManager.add(new MmsSendJob(context, messageId));
}
Also used : JobManager(org.whispersystems.jobqueue.JobManager) MmsSendJob(org.thoughtcrime.securesms.jobs.MmsSendJob)

Example 7 with JobManager

use of org.whispersystems.jobqueue.JobManager 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

JobManager (org.whispersystems.jobqueue.JobManager)7 SmsMessage (android.telephony.SmsMessage)1 MmsSendJob (org.thoughtcrime.securesms.jobs.MmsSendJob)1 PushGroupSendJob (org.thoughtcrime.securesms.jobs.PushGroupSendJob)1 PushMediaSendJob (org.thoughtcrime.securesms.jobs.PushMediaSendJob)1 PushTextSendJob (org.thoughtcrime.securesms.jobs.PushTextSendJob)1 SmsSendJob (org.thoughtcrime.securesms.jobs.SmsSendJob)1 SmsSentJob (org.thoughtcrime.securesms.jobs.SmsSentJob)1 Recipients (org.thoughtcrime.securesms.recipients.Recipients)1