Example #1
0
        public override IResponseMessageBase OnTextRequest(RequestMessageText requestMessage)
        {
            var responseMessage = base.CreateResponseMessage <ResponseMessageText>();

            if (requestMessage.Content == null)
            {
                responseMessage.Content = "您没有发送任何消息内容!";
            }
            else if (requestMessage.Content == "帮助")
            {
                responseMessage = HelpService.GetResponseMessage(requestMessage);
            }
            else if (requestMessage.Content == "科室")
            {
                responseMessage = DeptService.GetResponseMessage(requestMessage);
            }
            return(responseMessage);
        }