mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-06 16:25:01 +00:00
Call favorites start on mock; Fixed OBTP dialogs to match NYU
This commit is contained in:
@@ -62,6 +62,9 @@ namespace PepperDash.Essentials
|
||||
BoolInputSig ShareButtonSig;
|
||||
BoolInputSig EndMeetingButtonSig;
|
||||
|
||||
public HeaderListButton HeaderCallButton { get; private set; }
|
||||
public HeaderListButton HeaderGearButton { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// The parent driver for this
|
||||
/// </summary>
|
||||
@@ -345,7 +348,7 @@ namespace PepperDash.Essentials
|
||||
TriList.BooleanInput[UIBoolJoin.SelectASourceVisible].BoolValue = false;
|
||||
if (NextMeetingTimer != null)
|
||||
NextMeetingTimer.Stop();
|
||||
HideNextMeetingRibbon();
|
||||
HideNextMeetingPopup();
|
||||
base.Hide();
|
||||
}
|
||||
|
||||
@@ -390,9 +393,11 @@ namespace PepperDash.Essentials
|
||||
#warning HLV-Add some sort of every-minute "cron" thing to run these.
|
||||
NextMeetingTimer = new CTimer(o =>
|
||||
{
|
||||
if (CurrentRoom.OnFeedback.BoolValue)
|
||||
return;
|
||||
// Every 60 seconds, check meetings list for the closest, joinable meeting
|
||||
var meeting = ss.CodecSchedule.Meetings
|
||||
.Aggregate((m1, m2) => m1.StartTime < m2.StartTime ? m1 : m2);
|
||||
var meetings = ss.CodecSchedule.Meetings;
|
||||
var meeting = meetings.Aggregate((m1, m2) => m1.StartTime < m2.StartTime ? m1 : m2);
|
||||
if (meeting != null && meeting.Joinable)
|
||||
{
|
||||
TriList.SetString(UIStringJoin.NextMeetingRibbonStartText, meeting.StartTime.ToShortTimeString());
|
||||
@@ -402,10 +407,22 @@ namespace PepperDash.Essentials
|
||||
TriList.SetString(UIStringJoin.NextMeetingRibbonButtonLabel, "Join");
|
||||
TriList.SetSigFalseAction(UIBoolJoin.NextMeetingRibbonJoinPress, () =>
|
||||
{
|
||||
HideNextMeetingRibbon();
|
||||
HideNextMeetingPopup();
|
||||
RoomOnAndDialMeeting(meeting.ConferenceNumberToDial);
|
||||
});
|
||||
ShowNextMeetingRibbon();
|
||||
TriList.SetString(UIStringJoin.NextMeetingSecondaryButtonLabel, "Show Schedule");
|
||||
TriList.SetSigFalseAction(UIBoolJoin.CalendarHeaderButtonPress, () =>
|
||||
{
|
||||
HideNextMeetingPopup();
|
||||
CalendarPress();
|
||||
});
|
||||
if (meetings.Count > 1)
|
||||
{
|
||||
TriList.SetString(UIStringJoin.NextMeetingFollowingMeetingText,
|
||||
meetings[1].StartTime.ToShortTimeString());
|
||||
}
|
||||
|
||||
ShowNextMeetingPopup();
|
||||
}
|
||||
}, null, 0, 60000);
|
||||
}
|
||||
@@ -414,16 +431,16 @@ namespace PepperDash.Essentials
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
void ShowNextMeetingRibbon()
|
||||
void ShowNextMeetingPopup()
|
||||
{
|
||||
TriList.SetSigFalseAction(UIBoolJoin.NextMeetingRibbonClosePress, HideNextMeetingRibbon);
|
||||
TriList.SetSigFalseAction(UIBoolJoin.NextMeetingRibbonClosePress, HideNextMeetingPopup);
|
||||
TriList.SetBool(UIBoolJoin.NextMeetingRibbonVisible, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
void HideNextMeetingRibbon()
|
||||
void HideNextMeetingPopup()
|
||||
{
|
||||
TriList.SetBool(UIBoolJoin.NextMeetingRibbonVisible, false);
|
||||
}
|
||||
@@ -860,11 +877,17 @@ namespace PepperDash.Essentials
|
||||
|
||||
var roomConf = CurrentRoom.Config;
|
||||
//
|
||||
var setupButton = new HeaderListButton(HeaderButtonsList, 5);
|
||||
setupButton.SetIcon(HeaderListButton.Gear);
|
||||
setupButton.OutputSig.SetSigHeldAction(2000,
|
||||
HeaderGearButton = new HeaderListButton(HeaderButtonsList, 5);
|
||||
HeaderGearButton.SetIcon(HeaderListButton.Gear);
|
||||
HeaderGearButton.OutputSig.SetSigHeldAction(2000,
|
||||
ShowTech,
|
||||
() => PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.VolumesPageVisible));
|
||||
() =>
|
||||
{
|
||||
if (CurrentRoom.OnFeedback.BoolValue)
|
||||
PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.VolumesPageVisible);
|
||||
else
|
||||
PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.VolumesPagePowerOffVisible);
|
||||
});
|
||||
|
||||
TriList.SetSigFalseAction(UIBoolJoin.TechExitButton, () =>
|
||||
PopupInterlock.HideAndClear());
|
||||
@@ -920,10 +943,11 @@ namespace PepperDash.Essentials
|
||||
}
|
||||
|
||||
// Call button
|
||||
var callBut = new HeaderListButton(HeaderButtonsList, nextIndex);
|
||||
callBut.SetIcon(HeaderListButton.OnHook);
|
||||
callBut.OutputSig.SetSigFalseAction(() =>
|
||||
HeaderCallButton = new HeaderListButton(HeaderButtonsList, nextIndex);
|
||||
HeaderCallButton.SetIcon(HeaderListButton.OnHook);
|
||||
HeaderCallButton.OutputSig.SetSigFalseAction(() =>
|
||||
PopupInterlock.ShowInterlockedWithToggle(UIBoolJoin.HeaderActiveCallsListVisible));
|
||||
|
||||
nextIndex--;
|
||||
|
||||
// blank any that remain
|
||||
@@ -1217,5 +1241,7 @@ namespace PepperDash.Essentials
|
||||
JoinedSigInterlock PopupInterlock { get; }
|
||||
void ShowNotificationRibbon(string message, int timeout);
|
||||
void HideNotificationRibbon();
|
||||
HeaderListButton HeaderGearButton { get; }
|
||||
HeaderListButton HeaderCallButton { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,12 +207,15 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
UIBoolJoin.VCStagingActivePopoverVisible : UIBoolJoin.VCStagingInactivePopoverVisible);
|
||||
|
||||
// Set mode of header button
|
||||
if (!Codec.IsInCall)
|
||||
TriList.SetUshort(UIUshortJoin.CallHeaderButtonMode, 0);
|
||||
else if(Codec.ActiveCalls.Any(c => c.Type == eCodecCallType.Video))
|
||||
TriList.SetUshort(UIUshortJoin.CallHeaderButtonMode, 2);
|
||||
else
|
||||
TriList.SetUshort(UIUshortJoin.CallHeaderButtonMode, 1);
|
||||
if (!Codec.IsInCall)
|
||||
Parent.HeaderCallButton.SetIcon(HeaderListButton.OnHook);
|
||||
//TriList.SetUshort(UIUshortJoin.CallHeaderButtonMode, 0);
|
||||
else if (Codec.ActiveCalls.Any(c => c.Type == eCodecCallType.Video))
|
||||
Parent.HeaderCallButton.SetIcon(HeaderListButton.Camera);
|
||||
//TriList.SetUshort(UIUshortJoin.CallHeaderButtonMode, 2);
|
||||
else
|
||||
Parent.HeaderCallButton.SetIcon(HeaderListButton.Phone);
|
||||
//TriList.SetUshort(UIUshortJoin.CallHeaderButtonMode, 1);
|
||||
|
||||
// Update list of calls
|
||||
UpdateCallsHeaderList(call);
|
||||
@@ -228,7 +231,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
ushort i = 1;
|
||||
foreach (var c in activeList)
|
||||
{
|
||||
var item = new SubpageReferenceListItem(1, ActiveCallsSRL);
|
||||
//var item = new SubpageReferenceListItem(1, ActiveCallsSRL);
|
||||
ActiveCallsSRL.StringInputSig(i, 1).StringValue = c.Name;
|
||||
ActiveCallsSRL.StringInputSig(i, 2).StringValue = c.Number;
|
||||
ActiveCallsSRL.StringInputSig(i, 3).StringValue = c.Status.ToString();
|
||||
@@ -308,7 +311,11 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
else
|
||||
Codec.EndAllCalls();
|
||||
});
|
||||
TriList.SetSigFalseAction(UIBoolJoin.CallEndAllConfirmPress, Codec.EndAllCalls);
|
||||
TriList.SetSigFalseAction(UIBoolJoin.CallEndAllConfirmPress, () =>
|
||||
{
|
||||
Parent.PopupInterlock.HideAndClear();
|
||||
Codec.EndAllCalls();
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -380,7 +387,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
||||
var codec = Codec as IHasDirectory;
|
||||
if (codec != null)
|
||||
{
|
||||
codec.CallHistory.RecentCallsListHasChanged += (o, a) => RefreshRecentCallsList();
|
||||
//codec.CallHistory.RecentCallsListHasChanged += (o, a) => RefreshRecentCallsList();
|
||||
// EVENT??????????????? Pointed at refresh
|
||||
DirectoryList = new SmartObjectDynamicList(TriList.SmartObjects[UISmartObjectJoin.VCDirectoryList],
|
||||
true, 1300);
|
||||
|
||||
Reference in New Issue
Block a user