Exemplo n.º 1
0
        private void DoSendMsg(List <Model.SubmitRequest> argSendSmss)
        {
            Submit        vSubmitBll;
            SubmitResp    vSubmitResp;
            StringBuilder vResultMsg = new StringBuilder();

            foreach (Model.SubmitRequest item in argSendSmss)
            {
                vSubmitBll = new Submit(item);
                vSubmitBll.FillBodyBytes();
                vSubmitBll.Write(_Socket);
                vSubmitResp = (SubmitResp)vSubmitBll.Read(_Socket);
                string vResultTemp = Help.ResultCode.ContainsKey(vSubmitResp.Result) ? Help.ResultCode[vSubmitResp.Result] : "unknow error";
                vResultMsg.Append(item.UserNumber + ":" + vResultTemp + "|");
            }
            _Result = vResultMsg.ToString();
        }