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