public void SendMessage(MessageType msgType, object body) { var message = new NooMessage() { Content = body, Type = msgType }; Notifier.NotifyAll(NotificationType.Message, message); }
public void SendMessage(Device device, MessageType msgType, object body) { var message = new NooMessage() { Content = body, Type = msgType }; Notifier.NotifyConnection(device.ConnectionId, NotificationType.Message, message); }
public void SendMessage(MessageType type, object message) { var msg = new NooMessage() { Content = message, Type = type, From = Device.Id }; var output = ConstructEvent(NotificationType.Message, msg); try { _eventHandler.Send(output); } catch { } }
public MessageEventArgs(NooMessage message) { Message = message; }