コード例 #1
0
 //获取联系人信息
 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);
     });
 }
コード例 #2
0
        //获取联系人信息
        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);
            });
        }
コード例 #3
0
 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);
     });
 }
コード例 #4
0
 //获取列车到站信息
 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);
     });
 }
コード例 #5
0
 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);
     });
 }
コード例 #6
0
 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);
     });
 }
コード例 #7
0
 //登录
 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);
     });
 }
コード例 #8
0
 //开始占座
 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);
     });
 }
コード例 #9
0
 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);
     });
 }
コード例 #10
0
 //确认队列
 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);
     });
 }
コード例 #11
0
 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);
     });
 }
コード例 #12
0
 //获取随机码
 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);
     });
 }
コード例 #13
0
 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);
     });
 }
コード例 #14
0
        //开始占座
        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);
            });
        }
コード例 #15
0
        //确认队列
        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);
            });
        }
コード例 #16
0
        //获取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);
            });
        }
コード例 #17
0
        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);
            });
        }
コード例 #18
0
        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);
            });
        }
コード例 #19
0
        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);
            });
        }
コード例 #20
0
        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);
            });
        }
コード例 #21
0
        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);
            });
        }
コード例 #22
0
        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);
            });
        }
コード例 #23
0
        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);
            });
        }
コード例 #24
0
 //验证订单
 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);
     });
 }
コード例 #25
0
        //获取列车到站信息
        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);
            });
        }
コード例 #26
0
ファイル: LoginAction.cs プロジェクト: vstion/12306_Helper
        //登录
        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);
            });
        }
コード例 #27
0
        //提交订单
        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);
            });
        }
コード例 #28
0
ファイル: LoginAction.cs プロジェクト: vstion/12306_Helper
        //获取随机码
        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);
            });
        }
コード例 #29
0
        //验证订单
        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);
            });
        }
コード例 #30
0
 //查询余票信息
 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);
         }
     });
 }
コード例 #31
0
        //查询余票信息
        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);
                }
            });
        }
コード例 #32
0
 //获取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);
     });
 }
コード例 #33
0
 //提交订单
 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);
     });
 }
コード例 #34
0
 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);
     });
 }