namespace PepperDash.Essentials.Devices.Common.Codec
{
///
/// Enumeration of eCodecCallDirection values
///
public enum eCodecCallDirection
{
///
/// Unknown call direction
///
Unknown = 0,
///
/// Incoming call direction
///
Incoming,
///
/// Outgoing call direction
///
Outgoing
}
///
/// Represents a CodecCallDirection
///
public class CodecCallDirection
{
///
/// Takes the Cisco call type and converts to the matching enum
///
///
///
///
/// ConvertToDirectionEnum method
///
public static eCodecCallDirection ConvertToDirectionEnum(string s)
{
switch (s.ToLower())
{
case "incoming":
{
return eCodecCallDirection.Incoming;
}
case "outgoing":
{
return eCodecCallDirection.Outgoing;
}
default:
return eCodecCallDirection.Unknown;
}
}
}
}