//获取联系人信息 public void GetPassengersAll(Action<string> callback,System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.confirmPassengerAction_getpassengerJson, Properties.Resources.confirmPassengerAction_init, "POST", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//获取联系人信息 public void GetPassengersAll(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.confirmPassengerAction_getpassengerJson, Properties.Resources.confirmPassengerAction_init, "POST", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void SelectOrder(Action<string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.myOrderAction_queryMyOrder, Properties.Resources.myOrderAction_showMessage, "POST", PostData, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//获取列车到站信息 public void GetArriveStationInfo(Action<string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.querySingleAction_queryaTrainStopTimeByTrainNo + QueryString, Properties.Resources.querySingleAction_init, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void CancelNotCompleteOrder(Action<string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.orderAction_cancelMyOrderNotComplete, Properties.Resources.myOrderAction_queryMyOrderNotComplete, "POST", PostData, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void InitUsualPassenger12306(Action<string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.passengerAction_initUsualPassenger12306All, Properties.Resources.loginAction_login, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//登录 public void BeginLogin(Action<string> callback) { WebRequestHelper webrequest = new WebRequestHelper(Properties.Resources.loginAction_login, Properties.Resources.loginAction_init, "POST", this._postdata, cookieContainer); webrequest.SendDataToServer((str,cookie) => { formSelectTicket.cookieContainer = cookie; callback(str); }); }
//开始占座 public void BeginGetSeat(Action<string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.myOrderAction_queryOrderWaitTime, Properties.Resources.confirmPassengerAction_init, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void InitModifyPassenger(Action<string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.passengerAction_initModifyPassenger, Properties.Resources.passengerAction_initUsualPassenger12306, "POST", PostData, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//确认队列 public void ConfirmOrderQueue(Action<string> callback,System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.confirmPassengerAction_confirmSingleForQueue, "", "POST", this._postdata.Replace("&tFlag=dc", ""), cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void GetUnfinishedOrder(Action<string> callback,System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.myOrderAction_queryMyOrderNotComplete, Properties.Resources.editMemberAction_initEdit, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//获取随机码 public void GetLoginRand(Action<string> callback) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.loginAction_AysnSuggest, Properties.Resources.loginAction_init, "POST", "", cookieContainer); webHelper.SendDataToServer((str) => { callback(str); }); }
public void GetOrderSelectToken(Action<string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.myOrderAction_showMessage, Properties.Resources.loginAction_login, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//开始占座 public void BeginGetSeat(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.myOrderAction_queryOrderWaitTime, Properties.Resources.confirmPassengerAction_init, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//确认队列 public void ConfirmOrderQueue(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.confirmPassengerAction_confirmSingleForQueue, "", "POST", this._postdata.Replace("&tFlag=dc", ""), cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//获取Token public void GetTokenWithSubmitPage(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.querySingleAction_submutOrderRequest, Properties.Resources.querySingleAction_init, "POST", this._postdata, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void InitModifyPassenger(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.passengerAction_initModifyPassenger, Properties.Resources.passengerAction_initUsualPassenger12306, "POST", PostData, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void InitUsualPassenger12306(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.passengerAction_initUsualPassenger12306All, Properties.Resources.loginAction_login, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void GetUnfinishedOrder(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.editMemberAction_initEdit, Properties.Resources.ostweb, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void SelectOrder(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.myOrderAction_queryMyOrder, Properties.Resources.myOrderAction_showMessage, "POST", PostData, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void GetOrderSelectToken(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.myOrderAction_showMessage, Properties.Resources.loginAction_login, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void CancelNotCompleteOrder(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.orderAction_cancelMyOrderNotComplete, Properties.Resources.myOrderAction_queryMyOrderNotComplete, "POST", PostData, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void SavePassenger(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.savePassenger, Properties.Resources.initAddPassenger, "POST", PostData, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//验证订单 public void ConfirmOrder(Action<string> callback,System.Net.CookieContainer cookie) { WebRequestHelper webrequest = new WebRequestHelper(Properties.Resources.confirmPassengerAction_checkOrderInfo + this._querystring, Properties.Resources.confirmPassengerAction_init, "POST", _postdata, cookie); webrequest.SendDataToServer((str) => { callback(str); }); }
//获取列车到站信息 public void GetArriveStationInfo(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.querySingleAction_queryaTrainStopTimeByTrainNo + QueryString, Properties.Resources.querySingleAction_init, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//登录 public void BeginLogin(Action <string> callback) { WebRequestHelper webrequest = new WebRequestHelper(Properties.Resources.loginAction_login, Properties.Resources.loginAction_init, "POST", this._postdata, cookieContainer); webrequest.SendDataToServer((str, cookie) => { formSelectTicket.cookieContainer = cookie; callback(str); }); }
//提交订单 public void SubmitOrder(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.confirmPassengerAction_getQueueCount + this._querystring, Properties.Resources.confirmPassengerAction_init, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//获取随机码 public void GetLoginRand(Action <string> callback) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.loginAction_AysnSuggest, Properties.Resources.loginAction_init, "POST", "", cookieContainer); webHelper.SendDataToServer((str) => { callback(str); }); }
//验证订单 public void ConfirmOrder(Action <string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webrequest = new WebRequestHelper(Properties.Resources.confirmPassengerAction_checkOrderInfo + this._querystring, Properties.Resources.confirmPassengerAction_init, "POST", _postdata, cookie); webrequest.SendDataToServer((str) => { callback(str); }); }
//查询余票信息 public void GetLeftTickets(Action<string> callback,Action<object> callbackExpires, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.querySingleAction_queryLeftTicket + this._querystring, Properties.Resources.querySingleAction_init, "GET", "", cookie); webHelper.SendDataToServer((str,expires) => { callback(str); if (expires != null && expires != "") { callbackExpires(expires); } }); }
//查询余票信息 public void GetLeftTickets(Action <string> callback, Action <object> callbackExpires, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.querySingleAction_queryLeftTicket + this._querystring, Properties.Resources.querySingleAction_init, "GET", "", cookie); webHelper.SendDataToServer((str, expires) => { callback(str); if (expires != null && expires != "") { callbackExpires(expires); } }); }
//获取Token public void GetTokenWithSubmitPage(Action<string> callback,System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.querySingleAction_submutOrderRequest, Properties.Resources.querySingleAction_init, "POST", this._postdata, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
//提交订单 public void SubmitOrder(Action<string> callback,System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.confirmPassengerAction_getQueueCount + this._querystring, Properties.Resources.confirmPassengerAction_init, "GET", "", cookie); webHelper.SendDataToServer((str) => { callback(str); }); }
public void SavePassenger(Action<string> callback, System.Net.CookieContainer cookie) { WebRequestHelper webHelper = new WebRequestHelper(Properties.Resources.savePassenger, Properties.Resources.initAddPassenger, "POST", PostData, cookie); webHelper.SendDataToServer((str) => { callback(str); }); }