mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-05 07:45:05 +00:00
42 lines
999 B
C#
42 lines
999 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
|
|
namespace PepperDash.Essentials.Devices.Common.Codec
|
|
{
|
|
public enum eMeetingPrivacy
|
|
{
|
|
Unknown = 0,
|
|
Public,
|
|
Private
|
|
}
|
|
|
|
public class CodecCallPrivacy
|
|
{
|
|
/// <summary>
|
|
/// Takes the Cisco privacy type and converts to the matching enum
|
|
/// </summary>
|
|
/// <param name="s"></param>
|
|
/// <returns></returns>
|
|
public static eMeetingPrivacy ConvertToDirectionEnum(string s)
|
|
{
|
|
switch (s.ToLower())
|
|
{
|
|
case "public":
|
|
{
|
|
return eMeetingPrivacy.Public;
|
|
}
|
|
case "private":
|
|
{
|
|
return eMeetingPrivacy.Private;
|
|
}
|
|
default:
|
|
return eMeetingPrivacy.Unknown;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
} |