void OnMessage(BroadcastMessageNotification message) { if (null != BroadcastMessageNotificationEvent) { Console.WriteLine(String.Format("BroadcastMessageNotification: from:{0}; body:{1}", message.FromUser, message.MessageBody)); BroadcastMessageNotificationEvent(message); } }
public void SendBroadcastMessageNotification(string toUser, string body, List<MessageAttachment> attachments, string fromUser) { BroadcastMessageNotification response = new BroadcastMessageNotification(body, attachments, fromUser); string queueURL = CreateUserResponseQueue(toUser); m_sqsClient.SendMessage(new SendMessageRequest(). WithMessageBody(response.ToXML()). WithQueueUrl(queueURL)); }