Ejemplo n.º 1
0
 public R RefreshClientBuffer(bool force)
 {
     if (clientbufferOutdated || force)
     {
         try { clientbuffer = tsBaseClient.ClientList(ClientListOptions.uid).ToList(); }
         catch (Ts3CommandException ex) { return("Clientlist failed: " + ex.Message); }
         clientbufferOutdated = false;
     }
     return(R.OkR);
 }
Ejemplo n.º 2
0
 public R RefreshClientBuffer(bool force)
 {
     if (clientbufferOutdated || force)
     {
         var result = tsBaseClient.ClientList(ClientListOptions.uid);
         if (!result)
         {
             return($"Clientlist failed ({result.Error.ErrorFormat()})");
         }
         clientbuffer         = result.Value.ToList();
         clientbufferOutdated = false;
     }
     return(R.OkR);
 }