namespace axXez.TS3.Protocol
{
/// Fired when a client enters the bot's visible view (connects or moves into a subscribed channel).
public class ClientEnteredViewArgs : TsEntity
{
/// ID of the channel the client came from; 0 if the client just connected.
[TsField("cfid")]
public int SourceChannelID { get; private set; }
/// ID of the channel the client entered.
[TsField("ctid")]
public int TargetChannelID { get; private set; }
/// Reason for the view change.
[TsField("reasonid")]
public EventReason ReasonID { get; private set; }
/// Client who entered the view, populated with fields sent by this notification.
[TsField]
public ClientInfo ClientInfo { get; private set; }
internal ClientEnteredViewArgs(TsDataEntry data) : base(data) { }
}
}