Пример #1
0
 public void SendSearchMessagesResponse(CraneChatRequest request, IEnumerable<SearchMessagesResponseItem> items)
 {
     SearchMessagesResponse response = new SearchMessagesResponse(items);
     SendResponse(request, response);
 }
Пример #2
0
 public void SendOKResponse(CraneChatRequest request)
 {
     CraneChatResponse response = new CraneChatResponse();
     SendResponse(request, response);
 }
Пример #3
0
 public void SendLoginResponse(CraneChatRequest request)
 {
     LoginResponse response = new LoginResponse();
     SendResponse(request, response);
 }
Пример #4
0
 public void SendErrorResponse(CraneChatRequest request, string error)
 {
     ErrorCraneChatMessageResponse response = new ErrorCraneChatMessageResponse(error);
     SendResponse(request, response);
 }
Пример #5
0
 public void SendBroadcastMessageResponse(CraneChatRequest request)
 {
     SendBroadcastMessageResponse response = new SendBroadcastMessageResponse();
     SendResponse(request, response);
 }
Пример #6
0
        private void SendResponse(CraneChatRequest request, CraneChatResponse response)
        {
            response.RequestGuid = request.RequestGuid;

            string queueURL = CreateUserResponseQueue(request.UserName);

            m_sqsClient.SendMessage(new SendMessageRequest().
                WithMessageBody(response.ToXML()).
                WithQueueUrl(queueURL));
        }