Ejemplo n.º 1
0
        internal static Wrappers.CheckSMSResp.response ProcessCheckSMS(Wrappers.CheckSMSReq.request request)
        {
            Wrappers.CheckSMSResp.response resp = new Wrappers.CheckSMSResp.response();
            resp.method = "CheckSMSFull";
            foreach (var checkInstr in request.sms_id)
            {
                var status = service.CheckSMS(request.login, request.pwd, checkInstr.ToString());

                resp.sms.Add(new Wrappers.CheckSMSResp.response.smsLocalType()
                {
                    id           = checkInstr,
                    state_id     = status.Status.GetStatus(),
                    state_update = status.LastCheckUTC.ToString("yyyy-MM-dd hh:mm:ss"),
                });
            }
            return(resp);
        }
Ejemplo n.º 2
0
 public XRoot(response root)
 {
     this.doc        = new XDocument(root.Untyped);
     this.rootObject = root;
 }