public virtual bool sendMessage(UserAccount user, string messageBody) { if (messageBody == "") { throw new ArgumentException("messageBody"); } if (messageBody == null) { throw new ArgumentNullException("messageBody"); } ChatNotification?.Invoke(this, ChatEvents.message); return(true); }
protected virtual void OnDestroy() { ChatNotification?.Invoke(this, ChatEvents.delete); }