Esempio n. 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())));
 }
Esempio n. 2
0
        public Task KickClient(IEnumerable <GetClientInfo> clients, KickOrigin from)
        {
            var clIds = clients.Select(c => c.Id).ToArray();

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