Class FlowActionOtpVerifyCodeParamsCode
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(FlowActionOtpVerifyCodeParamsCode.JsonConverter))]
[Serializable]
public class FlowActionOtpVerifyCodeParamsCode
- Inheritance
-
FlowActionOtpVerifyCodeParamsCode
- Inherited Members
- Extension Methods
Properties
Type
Type discriminator
[JsonIgnore]
public string Type { get; }
Property Value
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsInt()
public int AsInt()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'int'.
AsString()
public string AsString()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'string'.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
FromInt(int)
Factory method to create a union from a int value.
public static FlowActionOtpVerifyCodeParamsCode FromInt(int value)
Parameters
valueint
Returns
FromString(string)
Factory method to create a union from a string value.
public static FlowActionOtpVerifyCodeParamsCode FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsInt()
Returns true if Type is "int"
public bool IsInt()
Returns
IsString()
Returns true if Type is "string"
public bool IsString()
Returns
Match<T>(Func<int, T>, Func<string, T>)
public T Match<T>(Func<int, T> onInt, Func<string, T> onString)
Parameters
Returns
- T
Type Parameters
T
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TryGetInt(out int?)
Attempts to cast the value to a int and returns true if successful.
public bool TryGetInt(out int? value)
Parameters
valueint?
Returns
TryGetString(out string?)
Attempts to cast the value to a string and returns true if successful.
public bool TryGetString(out string? value)
Parameters
valuestring
Returns
Visit(Action<int>, Action<string>)
public void Visit(Action<int> onInt, Action<string> onString)
Parameters
Operators
implicit operator FlowActionOtpVerifyCodeParamsCode(int)
public static implicit operator FlowActionOtpVerifyCodeParamsCode(int value)
Parameters
valueint
Returns
implicit operator FlowActionOtpVerifyCodeParamsCode(string)
public static implicit operator FlowActionOtpVerifyCodeParamsCode(string value)
Parameters
valuestring