Example #1
0
        private ResultDTO SendMessageToApp(List <MobileMsgDTO> data4Mobile)
        {
            var isSuccess = true;
            var errMsg    = "";

            var msgSv = new BTPMessageSV();

            foreach (var msg in data4Mobile)
            {
                msgSv.SendMobileMessage(msg);
            }
            return(new ResultDTO {
                isSuccess = isSuccess, Message = errMsg, ResultCode = isSuccess ? 1 : 0
            });
        }
Example #2
0
        private ResultDTO SendMessageToWx(Guid appId, List <PayWxMessageDTO> data4Wx)
        {
            var isSuccess = true;
            var errMsg    = "";

            var msgSv = new BTPMessageSV();

            foreach (var msg in data4Wx)
            {
                msgSv.SendNewsMessageToWx(appId, msg);
            }
            return(new ResultDTO {
                isSuccess = isSuccess, Message = errMsg, ResultCode = isSuccess ? 1 : 0
            });
        }