Table of Contents

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

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsFlowActionOtpGenerateCode()

Returns the value as a FlowActionOtpGenerateCode if Type is 'flowActionOtpGenerateCode', otherwise throws an exception.

public FlowActionOtpGenerateCode AsFlowActionOtpGenerateCode()

Returns

FlowActionOtpGenerateCode

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

FlowActionOtpVerifyCode

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

obj object

The 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

value FlowActionOtpGenerateCode

Returns

FlowActionOtp

FromFlowActionOtpVerifyCode(FlowActionOtpVerifyCode)

Factory method to create a union from a Auth0.ManagementApi.FlowActionOtpVerifyCode value.

public static FlowActionOtp FromFlowActionOtpVerifyCode(FlowActionOtpVerifyCode value)

Parameters

value FlowActionOtpVerifyCode

Returns

FlowActionOtp

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

bool

IsFlowActionOtpVerifyCode()

Returns true if Type is "flowActionOtpVerifyCode"

public bool IsFlowActionOtpVerifyCode()

Returns

bool

Match<T>(Func<FlowActionOtpGenerateCode, T>, Func<FlowActionOtpVerifyCode, T>)

public T Match<T>(Func<FlowActionOtpGenerateCode, T> onFlowActionOtpGenerateCode, Func<FlowActionOtpVerifyCode, T> onFlowActionOtpVerifyCode)

Parameters

onFlowActionOtpGenerateCode Func<FlowActionOtpGenerateCode, T>
onFlowActionOtpVerifyCode Func<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

value FlowActionOtpGenerateCode

Returns

bool

TryGetFlowActionOtpVerifyCode(out FlowActionOtpVerifyCode?)

Attempts to cast the value to a FlowActionOtpVerifyCode and returns true if successful.

public bool TryGetFlowActionOtpVerifyCode(out FlowActionOtpVerifyCode? value)

Parameters

value FlowActionOtpVerifyCode

Returns

bool

Visit(Action<FlowActionOtpGenerateCode>, Action<FlowActionOtpVerifyCode>)

public void Visit(Action<FlowActionOtpGenerateCode> onFlowActionOtpGenerateCode, Action<FlowActionOtpVerifyCode> onFlowActionOtpVerifyCode)

Parameters

onFlowActionOtpGenerateCode Action<FlowActionOtpGenerateCode>
onFlowActionOtpVerifyCode Action<FlowActionOtpVerifyCode>

Operators

implicit operator FlowActionOtp(FlowActionOtpGenerateCode)

public static implicit operator FlowActionOtp(FlowActionOtpGenerateCode value)

Parameters

value FlowActionOtpGenerateCode

Returns

FlowActionOtp

implicit operator FlowActionOtp(FlowActionOtpVerifyCode)

public static implicit operator FlowActionOtp(FlowActionOtpVerifyCode value)

Parameters

value FlowActionOtpVerifyCode

Returns

FlowActionOtp