using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;

namespace PepperDash.Essentials.Devices.Common.Codec
{
    /// <summary>
    /// Enumeration of eMeetingPrivacy values
    /// </summary>
    public enum eMeetingPrivacy
    {
        Unknown = 0,
        Public,
        Private
    }

    /// <summary>
    /// Represents a CodecCallPrivacy
    /// </summary>
    public class CodecCallPrivacy
    {
        /// <summary>
        /// Takes the Cisco privacy type and converts to the matching enum
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        /// <summary>
        /// ConvertToDirectionEnum method
        /// </summary>
        public static eMeetingPrivacy ConvertToDirectionEnum(string s)
        {
            switch (s.ToLower())
            {
                case "public":
                    {
                        return eMeetingPrivacy.Public;
                    }
                case "private":
                    {
                        return eMeetingPrivacy.Private;
                    }
                default:
                    return eMeetingPrivacy.Unknown;
            }

        }

    }
}