Esempio n. 1
0
        public void Add(BindResp bindResp)
        {
            var res = AnResponse.Bulder().BindResp(bindResp).ToAnResponse();

            if (res.IsSuccessful)
            {
                SuccessResponses.Add(res);
            }
            else
            {
                ErrorResponse = res;
            }
        }
Esempio n. 2
0
        public void Add(StatusCode status)
        {
            var res = AnResponse.Bulder().StatusCode(status).ToAnResponse();

            if (status == StatusCode.OK)
            {
                SuccessResponses.Add(res);
            }
            else
            {
                ErrorResponse = res;
            }
        }
Esempio n. 3
0
        public void Add(AnMessage message, SubmitSmResp smResp)
        {
            var builder = AnResponse.Bulder().Message(message);

            if (smResp != null)
            {
                builder.SubmitSmResp(smResp);
                var res = builder.ToAnResponse();
                if (res.IsSuccessful)
                {
                    SuccessResponses.Add(res);
                }
                else
                {
                    ErrorResponse = res;
                }
            }
            else
            {
                var res = builder.StatusCode(StatusCode.SmppClient_UnknownError).ToAnResponse();
                ErrorResponse = res;
            }
        }