Bandwidth.Standard/WebRtc/Models/PublishPermissionEnum.cs
/// <summary>
/// Converts a PublishPermissionEnum value to a corresponding string value
/// </summary>
/// <param name="enumValue">The PublishPermissionEnum value to convert</param>
/// <returns>The representative string value</returns>
Converts a PublishPermissionEnum value to a corresponding string value
Converts a PublishPermissionEnum value to a corresponding string value
public static string ToValue(PublishPermissionEnum enumValue)
        {
            switch(enumValue)
            {
                case PublishPermissionEnum.AUDIO:
                case PublishPermissionEnum.VIDEO:
                    return stringValues[(int)enumValue];
                default:
                    return null;
            }
        }
public static string ToValue ( PublishPermissionEnum enumValue ) { switch ( enumValue ) { case PublishPermissionEnum . AUDIO : case PublishPermissionEnum . VIDEO : return stringValues [ ( int ) enumValue ] ; default : return null ; } }
Converts a PublishPermissionEnum value to a corresponding string value
Converts a PublishPermissionEnum value to a corresponding string value
//only valid enum elements can be used //this is necessary to avoid errors //an invalid enum value was requested
The representative string value
The representative string value
enumValue
PublishPermissionEnum
The PublishPermissionEnum value to convert
The PublishPermissionEnum value to convert