using System;
namespace SAMP.API.EventData {
public class RconLoginAttemptEventArgs : EventArgs {
#region Class Variables
private string
m_strIp,
m_strPassword;
private bool
m_bSuccess;
#endregion
#region Constructor
///
/// Initializes a new instance of the class.
///
/// The IP of the player that tried to login to RCON.
/// The password used to login with.
/// False if the password was incorrect or True if it was correct.
public RconLoginAttemptEventArgs(string ip, string password, bool success) {
this.m_strIp = ip;
this.m_strPassword = password;
this.m_bSuccess = success;
}
#endregion
#region Accessors & Mutators
///
/// Gets the IP of the player that tried to login to RCON.
///
public string IP {
get {
return this.m_strIp;
}
}
///
/// Gets the password used to login with.
///
public string Password {
get {
return this.m_strPassword;
}
}
///
/// Gets whether or not the password was correct.
///
public bool Success {
get {
return this.m_bSuccess;
}
}
#endregion
};
};