Class FlowActionOtp
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(FlowActionOtp.JsonConverter))]
[Serializable]
public class FlowActionOtp
- Inheritance
-
FlowActionOtp
- 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
AsFlowActionOtpGenerateCode()
Returns the value as a FlowActionOtpGenerateCode if Type is 'flowActionOtpGenerateCode', otherwise throws an exception.
public FlowActionOtpGenerateCode AsFlowActionOtpGenerateCode()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionOtpGenerateCode'.
AsFlowActionOtpVerifyCode()
Returns the value as a FlowActionOtpVerifyCode if Type is 'flowActionOtpVerifyCode', otherwise throws an exception.
public FlowActionOtpVerifyCode AsFlowActionOtpVerifyCode()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionOtpVerifyCode'.
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.
FromFlowActionOtpGenerateCode(FlowActionOtpGenerateCode)
Factory method to create a union from a Auth0.ManagementApi.FlowActionOtpGenerateCode value.
public static FlowActionOtp FromFlowActionOtpGenerateCode(FlowActionOtpGenerateCode value)
Parameters
Returns
FromFlowActionOtpVerifyCode(FlowActionOtpVerifyCode)
Factory method to create a union from a Auth0.ManagementApi.FlowActionOtpVerifyCode value.
public static FlowActionOtp FromFlowActionOtpVerifyCode(FlowActionOtpVerifyCode value)
Parameters
valueFlowActionOtpVerifyCode
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsFlowActionOtpGenerateCode()
Returns true if Type is "flowActionOtpGenerateCode"
public bool IsFlowActionOtpGenerateCode()
Returns
IsFlowActionOtpVerifyCode()
Returns true if Type is "flowActionOtpVerifyCode"
public bool IsFlowActionOtpVerifyCode()
Returns
Match<T>(Func<FlowActionOtpGenerateCode, T>, Func<FlowActionOtpVerifyCode, T>)
public T Match<T>(Func<FlowActionOtpGenerateCode, T> onFlowActionOtpGenerateCode, Func<FlowActionOtpVerifyCode, T> onFlowActionOtpVerifyCode)
Parameters
onFlowActionOtpGenerateCodeFunc<FlowActionOtpGenerateCode, T>onFlowActionOtpVerifyCodeFunc<FlowActionOtpVerifyCode, T>
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.
TryGetFlowActionOtpGenerateCode(out FlowActionOtpGenerateCode?)
Attempts to cast the value to a FlowActionOtpGenerateCode and returns true if successful.
public bool TryGetFlowActionOtpGenerateCode(out FlowActionOtpGenerateCode? value)
Parameters
Returns
TryGetFlowActionOtpVerifyCode(out FlowActionOtpVerifyCode?)
Attempts to cast the value to a FlowActionOtpVerifyCode and returns true if successful.
public bool TryGetFlowActionOtpVerifyCode(out FlowActionOtpVerifyCode? value)
Parameters
valueFlowActionOtpVerifyCode
Returns
Visit(Action<FlowActionOtpGenerateCode>, Action<FlowActionOtpVerifyCode>)
public void Visit(Action<FlowActionOtpGenerateCode> onFlowActionOtpGenerateCode, Action<FlowActionOtpVerifyCode> onFlowActionOtpVerifyCode)
Parameters
onFlowActionOtpGenerateCodeAction<FlowActionOtpGenerateCode>onFlowActionOtpVerifyCodeAction<FlowActionOtpVerifyCode>
Operators
implicit operator FlowActionOtp(FlowActionOtpGenerateCode)
public static implicit operator FlowActionOtp(FlowActionOtpGenerateCode value)
Parameters
Returns
implicit operator FlowActionOtp(FlowActionOtpVerifyCode)
public static implicit operator FlowActionOtp(FlowActionOtpVerifyCode value)
Parameters
valueFlowActionOtpVerifyCode