private void BraodCastNotification() { try { DataTable unsentNotification = VaaaN.MLFF.Libraries.CommonLibrary.BLL.SMSCommunicationHistoryBLL.GetAllPendindNotification(); foreach (DataRow row in unsentNotification.Rows) { string responseString = BrodcastDataMobile.BroadCastNotification(row["RESIDENT_ID"].ToString(), row["ENTRY_ID"].ToString(), row["VEHICLEID"].ToString(), row["TRANSACTION_SUBJECT"].ToString(), row["MESSAGE_BODY"].ToString()); SendBrodcastStatus(responseString, row["ENTRY_ID"].ToString(), "Noti"); Thread.Sleep(1000); } } catch (Exception ex) { LogMessage("Failed to send Mobile." + ex.Message); } //finally //{ // Thread.Sleep(2000); //} }
private void UpdateAccountBalance() { try { DataTable unsentBalance = VaaaN.MLFF.Libraries.CommonLibrary.BLL.CustomerVehicleBLL.GetCustomerbalanceUpdateMobile(); foreach (DataRow dr in unsentBalance.Rows) { string responseString = BrodcastDataMobile.BroadCastBalance(dr); SendBrodcastStatus(responseString, dr["ENTRY_ID"].ToString(), "balance"); Thread.Sleep(1000); } } catch (Exception ex) { LogMessage("Failed to send Mobile." + ex.Message); } //finally //{ // Thread.Sleep(2000); //} }