Esempio n. 1
0
        public R <ulong[]> GetClientServerGroups(ulong dbId)
        {
            var result = tsBaseClient.ServerGroupsByClientDbId(dbId);

            if (!result.Ok)
            {
                return("No client found.");
            }
            return(result.Value.Select(csg => csg.ServerGroupId).ToArray());
        }
Esempio n. 2
0
 public ulong[] GetClientServerGroups(ulong dbId)
 {
     Log.Write(Log.Level.Debug, "QC GetClientServerGroups called");
     return(tsBaseClient.ServerGroupsByClientDbId(dbId).Select(csg => csg.ServerGroupId).ToArray());
 }
Esempio n. 3
0
 public R <ulong[]> GetClientServerGroups(ulong dbId)
 {
     try { return(tsBaseClient.ServerGroupsByClientDbId(dbId).Select(csg => csg.ServerGroupId).ToArray()); }
     catch (Ts3CommandException) { return("No client found."); }
 }