feat: update directory contacts and enhance directory messaging to include current root directory

This commit is contained in:
Neil Dorin 2026-07-07 14:57:23 -06:00
parent f3f7755735
commit 7de2aa7c2e
2 changed files with 18 additions and 12 deletions

View file

@ -217,14 +217,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
new DirectoryContact() new DirectoryContact()
{ {
ContactId = "nyc_2", ContactId = "nyc_2",
Name = "Sumanth Rayancha", Name = "Priya Chandran",
Title = @"CTO", Title = @"CTO",
ContactMethods = new List<ContactMethod>() ContactMethods = new List<ContactMethod>()
{ {
new ContactMethod() new ContactMethod()
{ {
ContactMethodId = "cid_1", ContactMethodId = "cid_1",
Number = "srayancha.pepperdash.com", Number = "pchandran.pepperdash.com",
Device = eContactMethodDevice.Video, Device = eContactMethodDevice.Video,
CallType = eContactMethodCallType.Video CallType = eContactMethodCallType.Video
} }
@ -233,14 +233,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
new DirectoryContact() new DirectoryContact()
{ {
ContactId = "nyc_3", ContactId = "nyc_3",
Name = "Justin Gordon", Name = "Miles Anderson",
Title = @"Software Developer", Title = @"Software Developer",
ContactMethods = new List<ContactMethod>() ContactMethods = new List<ContactMethod>()
{ {
new ContactMethod() new ContactMethod()
{ {
ContactMethodId = "cid_1", ContactMethodId = "cid_1",
Number = "jgordon.pepperdash.com", Number = "manderson.pepperdash.com",
Device = eContactMethodDevice.Video, Device = eContactMethodDevice.Video,
CallType = eContactMethodCallType.Video CallType = eContactMethodCallType.Video
} }
@ -309,14 +309,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
new DirectoryContact() new DirectoryContact()
{ {
ContactId = "sfo_1", ContactId = "sfo_1",
Name = "David Huselid", Name = "Owen Bradshaw",
Title = @"Cive President, COO", Title = @"Cive President, COO",
ContactMethods = new List<ContactMethod>() ContactMethods = new List<ContactMethod>()
{ {
new ContactMethod() new ContactMethod()
{ {
ContactMethodId = "cid_1", ContactMethodId = "cid_1",
Number = "dhuselid.pepperdash.com", Number = "obradshaw.pepperdash.com",
Device = eContactMethodDevice.Video, Device = eContactMethodDevice.Video,
CallType = eContactMethodCallType.Video CallType = eContactMethodCallType.Video
} }
@ -347,14 +347,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
new DirectoryContact() new DirectoryContact()
{ {
ContactId = "den_1", ContactId = "den_1",
Name = "Heath Volmer", Name = "Derek Simmons",
Title = @"Software Developer", Title = @"Software Developer",
ContactMethods = new List<ContactMethod>() ContactMethods = new List<ContactMethod>()
{ {
new ContactMethod() new ContactMethod()
{ {
ContactMethodId = "cid_1", ContactMethodId = "cid_1",
Number = "hvolmer.pepperdash.com", Number = "dsimmons.pepperdash.com",
Device = eContactMethodDevice.Video, Device = eContactMethodDevice.Video,
CallType = eContactMethodCallType.Video CallType = eContactMethodCallType.Video
} }
@ -385,14 +385,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
new DirectoryContact() new DirectoryContact()
{ {
ContactId = "atx_1", ContactId = "atx_1",
Name = "Vincent Longano", Name = "Marcus Webb",
Title = @"Product Development Manager", Title = @"Product Development Manager",
ContactMethods = new List<ContactMethod>() ContactMethods = new List<ContactMethod>()
{ {
new ContactMethod() new ContactMethod()
{ {
ContactMethodId = "cid_1", ContactMethodId = "cid_1",
Number = "vlongano.pepperdash.com", Number = "mwebb.pepperdash.com",
Device = eContactMethodDevice.Video, Device = eContactMethodDevice.Video,
CallType = eContactMethodCallType.Video CallType = eContactMethodCallType.Video
} }
@ -452,14 +452,14 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec
new DirectoryContact() new DirectoryContact()
{ {
ContactId = "cdn_1", ContactId = "cdn_1",
Name = "Neil Dorin", Name = "Alex Turner",
Title = @"Software Developer /SC", Title = @"Software Developer /SC",
ContactMethods = new List<ContactMethod>() ContactMethods = new List<ContactMethod>()
{ {
new ContactMethod() new ContactMethod()
{ {
ContactMethodId = "cid_1", ContactMethodId = "cid_1",
Number = "ndorin@pepperdash.com", Number = "aturner@pepperdash.com",
Device = eContactMethodDevice.Video, Device = eContactMethodDevice.Video,
CallType = eContactMethodCallType.Video CallType = eContactMethodCallType.Video
} }

View file

@ -78,6 +78,11 @@ namespace PepperDash.Essentials.AppServer.Messengers
this.LogVerbose("Sending Directory. Directory Item Count: {directoryItemCount}", directory.CurrentDirectoryResults.Count); this.LogVerbose("Sending Directory. Directory Item Count: {directoryItemCount}", directory.CurrentDirectoryResults.Count);
Task.Run(() => PostStatusMessage(new IHasDirectoryStateMessage 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 CurrentDirectory = directory
})); }));
} }
@ -93,6 +98,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
{ {
PostStatusMessage(new IHasDirectoryStateMessage PostStatusMessage(new IHasDirectoryStateMessage
{ {
DirectoryRoot = _directory.DirectoryRoot,
InitialPhonebookSyncComplete = true InitialPhonebookSyncComplete = true
}); });
} }