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); }
public XRoot(request root) { this.doc = new XDocument(root.Untyped); this.rootObject = root; }