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()))); }
public Task KickClient(IEnumerable <GetClientInfo> clients, KickOrigin from) { var clIds = clients.Select(c => c.Id).ToArray(); return(KickClient(clIds, from)); }
public Task KickClient(int clientId, KickOrigin from, string reasonMessage) => KickClient(new[] { clientId }, from, reasonMessage);
public Task KickClient(GetClientInfo client, KickOrigin from) => KickClient(client.Id, from);
public Task KickClient(int clientId, KickOrigin from) => KickClient(new[] { clientId }, from);