namespace axXez.TS3.Protocol
{
/// Identity and session details for the current ServerQuery connection, returned by whoami.
public class WhoAmIInfo : TsEntity
{
/// Current status of the selected virtual server (e.g. "online").
[TsField("virtualserver_status")]
public string VirtualServerStatus { get; protected set; }
/// ID of the currently selected virtual server.
[TsField("virtualserver_id")]
public int VirtualServerID { get; protected set; }
/// Unique identifier of the currently selected virtual server.
[TsField("virtualserver_unique_identifier")]
public string VirtualServerUID { get; protected set; }
/// UDP port of the currently selected virtual server.
[TsField("virtualserver_port")]
public int VirtualServerPort { get; protected set; }
/// Session-based client ID of the ServerQuery connection.
[TsField("client_id")]
public int ClientID { get; protected set; }
/// ID of the channel the ServerQuery client is currently in.
[TsField("client_channel_id")]
public int ChannelID { get; protected set; }
/// Current nickname of the ServerQuery client.
[TsField("client_nickname")]
public string Nickname { get; protected set; }
/// Permanent database ID of the ServerQuery client.
[TsField("client_database_id")]
public int DatabaseID { get; protected set; }
/// Login name used to authenticate this ServerQuery connection.
[TsField("client_login_name")]
public string LoginName { get; protected set; }
/// Unique identifier of the ServerQuery client.
[TsField("client_unique_identifier")]
public string UID { get; protected set; }
/// ID of the origin server for this connection; 0 for direct connections.
[TsField("client_origin_server_id")]
public int OriginServerID { get; protected set; }
internal WhoAmIInfo(TsDataEntry data) : base(data) { }
}
}