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