Example #1
0
 public Task KickClient(IList <int> clientIds, KickOrigin from, string reasonMessage)
 {
     return(Client.Send("clientkick",
                        new Parameter("reasonid", (int)from),
                        new Parameter("reasonmsg", reasonMessage),
                        new Parameter("clid", clientIds.Select(i => new ParameterValue(i)).ToArray())));
 }
Example #2
0
        public Task KickClient(IEnumerable <GetClientInfo> clients, KickOrigin from)
        {
            var clIds = clients.Select(c => c.Id).ToArray();

            return(KickClient(clIds, from));
        }
Example #3
0
 public Task KickClient(int clientId, KickOrigin from, string reasonMessage) => KickClient(new[] { clientId }, from, reasonMessage);
Example #4
0
 public Task KickClient(GetClientInfo client, KickOrigin from) => KickClient(client.Id, from);
Example #5
0
 public Task KickClient(int clientId, KickOrigin from) => KickClient(new[] { clientId }, from);