feat: Adds ITechPassword

This commit is contained in:
Neil Dorin
2024-04-24 16:54:51 -06:00
parent 661f7b827a
commit e5d5c90aa9

View File

@@ -79,6 +79,32 @@ namespace PepperDash.Essentials.Core
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>
/// For rooms that default presentation only routing
/// </summary>