mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 05:05:00 +00:00
feat(essentials): Adds UIDriver logic for meeting recoding consent modal
This commit is contained in:
@@ -57,7 +57,10 @@ namespace PepperDash.Essentials
|
|||||||
/// 1008
|
/// 1008
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const uint MeetingLeavePress = 1008;
|
public const uint MeetingLeavePress = 1008;
|
||||||
|
/// <summary>
|
||||||
|
/// 1009
|
||||||
|
/// </summary>
|
||||||
|
public const uint RecordingConsentVisible = 1009;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -987,5 +990,16 @@ namespace PepperDash.Essentials
|
|||||||
/// 15307
|
/// 15307
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const uint PasswordPromptErrorVisible = 15307;
|
public const uint PasswordPromptErrorVisible = 15307;
|
||||||
|
|
||||||
|
// Meeting Recording Consent Dialog
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 15311
|
||||||
|
/// </summary>
|
||||||
|
public const uint MeetingRecodingConsentAgree = 15311;
|
||||||
|
/// <summary>
|
||||||
|
/// 15312
|
||||||
|
/// </summary>
|
||||||
|
public const uint MeetingRecodingConsentDisgree = 15312;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -215,10 +215,11 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
StartSearchBackspaceRepeat, StopSearchBackspaceRepeat, SearchKeypadBackspacePress);
|
StartSearchBackspaceRepeat, StopSearchBackspaceRepeat, SearchKeypadBackspacePress);
|
||||||
|
|
||||||
|
|
||||||
if (Codec is IPasswordPrompt)
|
|
||||||
{
|
|
||||||
SetupPasswordPrompt();
|
SetupPasswordPrompt();
|
||||||
}
|
|
||||||
|
|
||||||
|
SetupMeetingRecordingConsentPrompt();
|
||||||
|
|
||||||
|
|
||||||
// If the codec is ready, then get the values we want, otherwise wait
|
// If the codec is ready, then get the values we want, otherwise wait
|
||||||
@@ -1944,12 +1945,31 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
{
|
{
|
||||||
var passwordPromptCodec = Codec as IPasswordPrompt;
|
var passwordPromptCodec = Codec as IPasswordPrompt;
|
||||||
|
|
||||||
|
if (passwordPromptCodec == null) return;
|
||||||
|
|
||||||
passwordPromptCodec.PasswordRequired += new EventHandler<PasswordPromptEventArgs>(passwordPromptCodec_PasswordRequired);
|
passwordPromptCodec.PasswordRequired += new EventHandler<PasswordPromptEventArgs>(passwordPromptCodec_PasswordRequired);
|
||||||
|
|
||||||
TriList.SetSigFalseAction(UIBoolJoin.PasswordPromptCancelPress, HidePasswordPrompt);
|
TriList.SetSigFalseAction(UIBoolJoin.PasswordPromptCancelPress, HidePasswordPrompt);
|
||||||
TriList.SetSigFalseAction(UIBoolJoin.PasswordPromptTextPress, RevealKeyboard);
|
TriList.SetSigFalseAction(UIBoolJoin.PasswordPromptTextPress, RevealKeyboard);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetupMeetingRecordingConsentPrompt()
|
||||||
|
{
|
||||||
|
var recordingCodec = Codec as IHasMeetingRecordingWithPrompt;
|
||||||
|
|
||||||
|
if (recordingCodec == null) return;
|
||||||
|
|
||||||
|
recordingCodec.RecordConsentPromptIsVisible.OutputChange += new EventHandler<FeedbackEventArgs>(RecordConsentPromptIsVisible_OutputChange);
|
||||||
|
|
||||||
|
TriList.SetSigFalseAction(UIBoolJoin.MeetingRecodingConsentAgree, () => recordingCodec.RecordingPromptAcknowledgement(true));
|
||||||
|
TriList.SetSigFalseAction(UIBoolJoin.MeetingRecodingConsentDisgree, () => recordingCodec.RecordingPromptAcknowledgement(false));
|
||||||
|
}
|
||||||
|
|
||||||
|
void RecordConsentPromptIsVisible_OutputChange(object sender, FeedbackEventArgs e)
|
||||||
|
{
|
||||||
|
TriList.SetBool(UIBoolJoin.RecordingConsentVisible, e.BoolValue);
|
||||||
|
}
|
||||||
|
|
||||||
void passwordPromptCodec_PasswordRequired(object sender, PasswordPromptEventArgs e)
|
void passwordPromptCodec_PasswordRequired(object sender, PasswordPromptEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.LoginAttemptCancelled)
|
if (e.LoginAttemptCancelled)
|
||||||
|
|||||||
Reference in New Issue
Block a user