using axXez.TS3.Protocol; using System; namespace axXez.TS3 { /// Represents a TeamSpeak client connected to the server. public class Client : ClientInfo { /// The server connection this client belongs to. public ServerConnection Connection { get; private set; } internal Client(ServerConnection connection, ClientInfo clientInfo) : base(clientInfo.AppliedData) { Connection = connection; } /// /// Returns true if this client is in the server's default group (i.e. has no assigned server group). /// public bool IsInDefaultGroup() { var defaultGroupId = Connection.Configuration.DefaultServerGroupID.ToString(); foreach (var part in ServerGroups.Split(',', StringSplitOptions.RemoveEmptyEntries)) if (part == defaultGroupId) return true; return false; } //public void Kick() //{ // //Connection.Query.KickClient(ID, ) //} } }