mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 10:58:28 +00:00
feat: update directory contacts and enhance directory messaging to include current root directory
This commit is contained in:
parent
f3f7755735
commit
7de2aa7c2e
2 changed files with 18 additions and 12 deletions
|
|
@ -217,14 +217,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|||
new DirectoryContact()
|
||||
{
|
||||
ContactId = "nyc_2",
|
||||
Name = "Sumanth Rayancha",
|
||||
Name = "Priya Chandran",
|
||||
Title = @"CTO",
|
||||
ContactMethods = new List<ContactMethod>()
|
||||
{
|
||||
new ContactMethod()
|
||||
{
|
||||
ContactMethodId = "cid_1",
|
||||
Number = "srayancha.pepperdash.com",
|
||||
Number = "pchandran.pepperdash.com",
|
||||
Device = eContactMethodDevice.Video,
|
||||
CallType = eContactMethodCallType.Video
|
||||
}
|
||||
|
|
@ -233,14 +233,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|||
new DirectoryContact()
|
||||
{
|
||||
ContactId = "nyc_3",
|
||||
Name = "Justin Gordon",
|
||||
Name = "Miles Anderson",
|
||||
Title = @"Software Developer",
|
||||
ContactMethods = new List<ContactMethod>()
|
||||
{
|
||||
new ContactMethod()
|
||||
{
|
||||
ContactMethodId = "cid_1",
|
||||
Number = "jgordon.pepperdash.com",
|
||||
Number = "manderson.pepperdash.com",
|
||||
Device = eContactMethodDevice.Video,
|
||||
CallType = eContactMethodCallType.Video
|
||||
}
|
||||
|
|
@ -309,14 +309,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|||
new DirectoryContact()
|
||||
{
|
||||
ContactId = "sfo_1",
|
||||
Name = "David Huselid",
|
||||
Name = "Owen Bradshaw",
|
||||
Title = @"Cive President, COO",
|
||||
ContactMethods = new List<ContactMethod>()
|
||||
{
|
||||
new ContactMethod()
|
||||
{
|
||||
ContactMethodId = "cid_1",
|
||||
Number = "dhuselid.pepperdash.com",
|
||||
Number = "obradshaw.pepperdash.com",
|
||||
Device = eContactMethodDevice.Video,
|
||||
CallType = eContactMethodCallType.Video
|
||||
}
|
||||
|
|
@ -347,14 +347,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|||
new DirectoryContact()
|
||||
{
|
||||
ContactId = "den_1",
|
||||
Name = "Heath Volmer",
|
||||
Name = "Derek Simmons",
|
||||
Title = @"Software Developer",
|
||||
ContactMethods = new List<ContactMethod>()
|
||||
{
|
||||
new ContactMethod()
|
||||
{
|
||||
ContactMethodId = "cid_1",
|
||||
Number = "hvolmer.pepperdash.com",
|
||||
Number = "dsimmons.pepperdash.com",
|
||||
Device = eContactMethodDevice.Video,
|
||||
CallType = eContactMethodCallType.Video
|
||||
}
|
||||
|
|
@ -385,14 +385,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|||
new DirectoryContact()
|
||||
{
|
||||
ContactId = "atx_1",
|
||||
Name = "Vincent Longano",
|
||||
Name = "Marcus Webb",
|
||||
Title = @"Product Development Manager",
|
||||
ContactMethods = new List<ContactMethod>()
|
||||
{
|
||||
new ContactMethod()
|
||||
{
|
||||
ContactMethodId = "cid_1",
|
||||
Number = "vlongano.pepperdash.com",
|
||||
Number = "mwebb.pepperdash.com",
|
||||
Device = eContactMethodDevice.Video,
|
||||
CallType = eContactMethodCallType.Video
|
||||
}
|
||||
|
|
@ -452,14 +452,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
|
|||
new DirectoryContact()
|
||||
{
|
||||
ContactId = "cdn_1",
|
||||
Name = "Neil Dorin",
|
||||
Name = "Alex Turner",
|
||||
Title = @"Software Developer /SC",
|
||||
ContactMethods = new List<ContactMethod>()
|
||||
{
|
||||
new ContactMethod()
|
||||
{
|
||||
ContactMethodId = "cid_1",
|
||||
Number = "ndorin@pepperdash.com",
|
||||
Number = "aturner@pepperdash.com",
|
||||
Device = eContactMethodDevice.Video,
|
||||
CallType = eContactMethodCallType.Video
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,6 +78,11 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
this.LogVerbose("Sending Directory. Directory Item Count: {directoryItemCount}", directory.CurrentDirectoryResults.Count);
|
||||
Task.Run(() => PostStatusMessage(new IHasDirectoryStateMessage
|
||||
{
|
||||
// DirectoryRoot is otherwise only sent once, in response to an explicit /fullStatus
|
||||
// request. Since the root directory can keep growing after that (e.g. contacts
|
||||
// trickling in from a paged/async phonebook sync), include it here too so it stays
|
||||
// current as new directory results arrive, not just on first subscribe.
|
||||
DirectoryRoot = _directory.DirectoryRoot,
|
||||
CurrentDirectory = directory
|
||||
}));
|
||||
}
|
||||
|
|
@ -93,6 +98,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
{
|
||||
PostStatusMessage(new IHasDirectoryStateMessage
|
||||
{
|
||||
DirectoryRoot = _directory.DirectoryRoot,
|
||||
InitialPhonebookSyncComplete = true
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue