예제 #1
0
 /// <summary>
 /// Transfer data to this network server
 /// </summary>
 /// <param name="data"></param>
 /// <param name="_priority"></param>
 public virtual void Transfer(string data, Defs.Priority _priority = Defs.Priority.Normal)
 {
     if (!string.IsNullOrEmpty(data))
     {
         _Protocol.Transfer(data, _priority, this);
     }
 }
예제 #2
0
 /// <summary>
 /// Send a message to network
 /// </summary>
 /// <param name="text">Text of message</param>
 /// <param name="to">Sending to</param>
 /// <param name="_priority">Priority</param>
 /// <param name="pmsg">If this is private message (so it needs to be handled in a different way)</param>
 public virtual void Message(string text, string to, Defs.Priority _priority = Defs.Priority.Normal)
 {
     _Protocol.Message(text, to, this, _priority);
 }
예제 #3
0
 /// <summary>
 /// /me
 /// </summary>
 /// <param name="text"></param>
 /// <param name="to"></param>
 /// <param name="priority"></param>
 /// <returns></returns>
 public virtual Result Act(string text, string to, Network network, Defs.Priority priority = Defs.Priority.Normal)
 {
     this.DebugLog("Message2(string text, string to, Configuration.Priority priority = Configuration.Priority.Normal) is not implemented");
     return Result.NotImplemented;
 }
예제 #4
0
 /// <summary>
 /// Send a message to server
 /// </summary>
 /// <param name="text">Message</param>
 /// <param name="to">User or a channel (needs to be prefixed with #)</param>
 /// <param name="network"></param>
 /// <param name="priority"></param>
 /// <returns></returns>
 public virtual Result Message(string text, string to, Network network, Defs.Priority priority = Defs.Priority.Normal)
 {
     this.DebugLog("Message(string text, string to, Network network, Configuration.Priority priority = "
                    +"Configuration.Priority.Normal, bool pmsg = false) is not implemented");
      return Result.NotImplemented;
 }
예제 #5
0
 /// <summary>
 /// Deliver raw data to server
 /// </summary>
 /// <param name="data"></param>
 /// <param name="priority"></param>
 /// <param name="network"></param>
 public virtual Result Transfer(string data, Defs.Priority priority = Defs.Priority.Normal, Network network = null)
 {
     this.DebugLog("Transfer(string data, Configuration.Priority _priority = Configuration.Priority.Normal, Network network = null) is not implemented");
     return Result.NotImplemented;
 }