Example #1
0
 public R SendMessage(string message, ushort clientId)
 {
     if (Ts3String.TokenLength(message) > Ts3Const.MaxSizeTextMessage)
     {
         return("The message to send is longer than the maximum of " + Ts3Const.MaxSizeTextMessage + " characters");
     }
     return(tsBaseClient.SendPrivateMessage(message, clientId).ToR(Extensions.ErrorFormat));
 }
Example #2
0
 public R SendMessage(string message, ushort clientId)
 {
     if (Ts3String.TokenLength(message) > Ts3String.MaxMsgLength)
     {
         return("The message to send is longer than the maximum of " + Ts3String.MaxMsgLength + " characters");
     }
     try { tsBaseClient.SendPrivateMessage(message, clientId); return(R.OkR); }
     catch (Ts3CommandException ex) { return(ex.ErrorStatus.ErrorFormat()); }
 }