Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 protected virtual void OnDestroy()
 {
     ChatNotification?.Invoke(this, ChatEvents.delete);
 }