Bandwidth.Standard/Voice/Models/Status3Enum.cs
/// <summary>
/// Converts a Status3Enum value to a corresponding string value
/// </summary>
/// <param name="enumValue">The Status3Enum value to convert</param>
/// <returns>The representative string value</returns>
Converts a Status3Enum value to a corresponding string value
Converts a Status3Enum value to a corresponding string value
public static string ToValue(Status3Enum enumValue)
        {
            switch(enumValue)
            {
                case Status3Enum.None:
                case Status3Enum.Processing:
                case Status3Enum.Available:
                case Status3Enum.Error:
                case Status3Enum.Timeout:
                case Status3Enum.Filesizetoobig:
                case Status3Enum.Filesizetoosmall:
                    return stringValues[(int)enumValue];
                default:
                    return null;
            }
        }
public static string ToValue ( Status3Enum enumValue ) { switch ( enumValue ) { case Status3Enum . None : case Status3Enum . Processing : case Status3Enum . Available : case Status3Enum . Error : case Status3Enum . Timeout : case Status3Enum . Filesizetoobig : case Status3Enum . Filesizetoosmall : return stringValues [ ( int ) enumValue ] ; default : return null ; } }
Converts a Status3Enum value to a corresponding string value
Converts a Status3Enum 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
Status3Enum
The Status3Enum value to convert
The Status3Enum value to convert