Exemple #1
0
        private void WriteResponse(string result, string msgid)
        {
            SendSMSResult ret = new SendSMSResult();

            ret.Result = result;
            ret.MsgID  = msgid;
            string data = JsonSerialize.Serialize <SendSMSResult>(ret);

            Response.Write(data);
            Response.End();
        }
Exemple #2
0
        private void WriteResponse(string result, List <Report> rts)
        {
            GetReportResult ret = new GetReportResult();

            ret.Result  = result;
            ret.Reports = rts;
            string data = JsonSerialize.Serialize <GetReportResult>(ret);

            Response.Write(data);
            Response.End();
        }
Exemple #3
0
        private void WriteResponse(string result, int smsbalance, int mmsbalance)
        {
            GetBalanceResult ret = new GetBalanceResult();

            ret.Result     = result;
            ret.SmsBalance = smsbalance.ToString();
            ret.MmsBalance = mmsbalance.ToString();
            string data = JsonSerialize.Serialize <GetBalanceResult>(ret);

            Response.Write(data);
            Response.End();
        }
Exemple #4
0
        private void WriteResponse(string result, int monum, int getnum, List <MO> mos)
        {
            GetSMSResult ret = new GetSMSResult();

            ret.Result = result;
            ret.MONum  = monum.ToString();
            ret.GetNum = getnum.ToString();
            ret.Msgs   = mos;
            string data = JsonSerialize.Serialize <GetSMSResult>(ret);

            Response.Write(data);
            Response.End();
        }