diff --git a/Essentials Devices Common/Essentials Devices Common/Codec/iHasCallHistory.cs b/Essentials Devices Common/Essentials Devices Common/Codec/iHasCallHistory.cs index 90668fa4..63140918 100644 --- a/Essentials Devices Common/Essentials Devices Common/Codec/iHasCallHistory.cs +++ b/Essentials Devices Common/Essentials Devices Common/Codec/iHasCallHistory.cs @@ -8,6 +8,8 @@ namespace PepperDash.Essentials.Devices.Common.Codec { public interface IHasCallHistory { + event EventHandler RecentCallsListHasChanged; + List RecentCalls { get; } void RemoveEntry(CallHistory.CallHistoryEntry entry); @@ -27,10 +29,8 @@ namespace PepperDash.Essentials.Devices.Common.Codec /// /// Generic call history entry, not device specific /// - public class CallHistoryEntry + public class CallHistoryEntry : CodecActiveCallItem { - public string DisplayName { get; set; } - public string CallBackNumber { get; set; } public DateTime StartTime { get; set; } public eCodecOccurrenctType OccurenceType { get; set; } public string OccurrenceHistoryId { get; set; } @@ -49,8 +49,8 @@ namespace PepperDash.Essentials.Devices.Common.Codec { genericEntries.Add(new CallHistoryEntry() { - DisplayName = entry.DisplayName.Value, - CallBackNumber = entry.CallbackNumber.Value, + Name = entry.DisplayName.Value, + Number = entry.CallbackNumber.Value, StartTime = entry.LastOccurrenceStartTime.Value, OccurrenceHistoryId = entry.LastOccurrenceHistoryId.Value, OccurenceType = ConvertToOccurenceTypeEnum(entry.OccurrenceType.Value) diff --git a/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoCodec.cs b/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoCodec.cs index fa622342..8adc21d0 100644 --- a/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoCodec.cs +++ b/Essentials Devices Common/Essentials Devices Common/VideoCodec/CiscoCodec/CiscoCodec.cs @@ -20,7 +20,9 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco enum eCommandType { SessionStart, SessionEnd, Command, GetStatus, GetConfiguration }; public class CiscoCodec : VideoCodecBase, IHasCallHistory - { + { + public event EventHandler RecentCallsListHasChanged; + public IBasicCommunication Communication { get; private set; } public CommunicationGather PortGather { get; private set; } public CommunicationGather JsonGather { get; private set; } @@ -668,7 +670,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco foreach (CallHistory.CallHistoryEntry entry in RecentCalls) { - Debug.Console(1, this, "\nName: {0}\nNumber{1}\nStartTime{2}\nType{3}\n", entry.DisplayName, entry.CallBackNumber, entry.StartTime.ToString(), entry.OccurenceType); + Debug.Console(1, this, "\nName: {0}\nNumber: {1}\nStartTime: {2}\nType: {3}\n", entry.Name, entry.Number, entry.StartTime.ToString(), entry.OccurenceType); } } }