mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
updates to iCallHistory and changed CallHIstoryEntry to extend CodecActiveCallItem
This commit is contained in:
@@ -8,6 +8,8 @@ namespace PepperDash.Essentials.Devices.Common.Codec
|
||||
{
|
||||
public interface IHasCallHistory
|
||||
{
|
||||
event EventHandler<EventArgs> RecentCallsListHasChanged;
|
||||
|
||||
List<CallHistory.CallHistoryEntry> RecentCalls { get; }
|
||||
|
||||
void RemoveEntry(CallHistory.CallHistoryEntry entry);
|
||||
@@ -27,10 +29,8 @@ namespace PepperDash.Essentials.Devices.Common.Codec
|
||||
/// <summary>
|
||||
/// Generic call history entry, not device specific
|
||||
/// </summary>
|
||||
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)
|
||||
|
||||
@@ -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<EventArgs> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user