Exemplo n.º 1
0
 public static void DeliveryStatusUpdate(string providerReference, string recipient, DateTime notifiedOn, int notificationCode, string notificationMessage)
 {
     using (var db = new SmsLogDataContext())
     {
         db.SmsLog_DeliveryStatusUpdate(providerReference, recipient, notifiedOn, notificationCode, notificationMessage);
         db.SubmitChanges();
     }
 }
Exemplo n.º 2
0
 public static void DeliveryConfirmation(string providerReference, string recipient, DateTime deliveredOn, int notificationCode)
 {
     using (var db = new SmsLogDataContext())
     {
         db.SmsLog_DeliveryConfirmation(providerReference, recipient, deliveredOn, notificationCode);
         db.SubmitChanges();
     }
 }
Exemplo n.º 3
0
 public static void DeliveryFailure(string providerReference, string recipient, DateTime failedOn, int errorCode, string errorMessage)
 {
     using (var db = new SmsLogDataContext())
     {
         db.SmsLog_DeliveryFailureNotification(providerReference, recipient, failedOn, errorCode, errorMessage);
         db.SubmitChanges();
     }
 }
Exemplo n.º 4
0
 public override void OnAcceptance(ISms sms, DateTime timeStamp)
 {
     using (var db = new SmsLogDataContext())
     {
         db.SmsLog_Insert(sms, timeStamp);
         db.SubmitChanges();
     }
 }
Exemplo n.º 5
0
        public static void SmsLog_Submitted(ISms sms, ISmsStatusCollection status, DateTime timeStamp)
        {
            using (var db = new SmsLogDataContext())
            {
                for (int count = 0; count < status.Count; ++count)
                    db.SmsLog_Forwarded(sms.ReferenceId, status[count].ProviderReference, timeStamp, sms.Recipients[count], status[count].Status < 0, status[count].ErrorCode, status[count].ErrorMessage);

                db.SubmitChanges();
            }
        }