Exemplo n.º 1
0
 private static void SendSignUpSMSForMMT(string Name, string bookingId, string MobileNo, string TotalSeats, string Play, DateTime ShowDate, DateTime ShowTime, string promo)
 {
     string tracName = Name.ToString();
     string[] dtrName = tracName.Split(' ');
     string tracDate = ShowDate.ToString("dd/MM/yyyy,h:mm tt");
     string[] dtrDate = tracDate.Split(',');
     string tracTime = ShowTime.ToString("dd/MM/yyyy,h:mm tt");
     string[] dtrTime = tracTime.Split(',');
     //DateTime tracTime = Convert.ToDateTime(ShowTime.ToString(""));
     sendSMS SmsObj = new sendSMS();
     string Msg = null;
     if (promo == "MMTDOMESTIC")
         Msg = "Dear " + dtrName[0] + "," + "Booking Id : " + bookingId + "." + "Seats " + TotalSeats + " for " + Play + " on " + dtrDate[0] + "," + dtrTime[1] + " at KoD. Please carry your CC/DC/RC which was used for booking tickets.";
     else
         Msg = "Dear " + dtrName[0] + "," + "Booking Id : " + bookingId + "." + "Seats " + TotalSeats + " for " + Play + " on " + dtrDate[0] + " at KoD. Please carry your CC/DC/RC which was used for booking tickets.";
     SmsObj.SendSMS_Sender(MobileNo, Msg, "KINGDM");
 }
Exemplo n.º 2
0
 public static bool SendSMSToCustomer(String mobileNo, String message)
 {
     return false;
     sendSMS sms = new sendSMS();
     String response = sms.SendSMS_Sender(mobileNo, message, "KOD");
     Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write("SMS Sending Status: " + response);
     return response.Contains("Sent Successfully");
 }
Exemplo n.º 3
0
 private static void SendSignUpSMS(string Name, string bookingId, string MobileNo, string TotalSeats, string Play, DateTime ShowDate, DateTime ShowTime)
 {
     string tracName = Name.ToString();
     string[] dtrName = tracName.Split(' ');
     string tracDate = ShowDate.ToString("dd/MM/yyyy,h:mm tt");
     string[] dtrDate = tracDate.Split(',');
     string tracTime = ShowTime.ToString("dd/MM/yyyy,h:mm tt");
     string[] dtrTime = tracTime.Split(',');
     //DateTime tracTime = Convert.ToDateTime(ShowTime.ToString(""));
     sendSMS SmsObj = new sendSMS();
     string Msg = null;
     Msg = "Booking Details KOD Booking ID " + bookingId + " Dear " + dtrName[0] + " we confirm the booking of " + TotalSeats + " seats for " + Play + " Show on " + dtrDate[0] + " starting at " + dtrTime[1] + ".";
     SmsObj.SendSMS_Sender(MobileNo, Msg, "KINGDM");
 }