mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
feat: Adds ITechPassword
This commit is contained in:
@@ -79,6 +79,32 @@ namespace PepperDash.Essentials.Core
|
|||||||
void SetShutdownPromptSeconds(int seconds);
|
void SetShutdownPromptSeconds(int seconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Describes a room with a tech password
|
||||||
|
/// </summary>
|
||||||
|
public interface ITechPassword
|
||||||
|
{
|
||||||
|
event EventHandler<TechPasswordEventArgs> TechPasswordValidateResult;
|
||||||
|
|
||||||
|
event EventHandler<EventArgs> TechPasswordChanged;
|
||||||
|
|
||||||
|
int TechPasswordLength { get; }
|
||||||
|
|
||||||
|
void ValidateTechPassword(string password);
|
||||||
|
|
||||||
|
void SetTechPassword(string oldPassword, string newPassword);
|
||||||
|
}
|
||||||
|
|
||||||
|
public class TechPasswordEventArgs : EventArgs
|
||||||
|
{
|
||||||
|
public bool IsValid { get; private set; }
|
||||||
|
|
||||||
|
public TechPasswordEventArgs(bool isValid)
|
||||||
|
{
|
||||||
|
IsValid = isValid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// For rooms that default presentation only routing
|
/// For rooms that default presentation only routing
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user