Table of Contents

Class PhoneVerification

Namespace
NuvTools.Security.Verification
Assembly
NuvTools.Security.dll

What became of sending a code to a phone number, or of checking one.

public sealed record PhoneVerification : IEquatable<PhoneVerification>
Inheritance
PhoneVerification
Implements
Inherited Members

Constructors

PhoneVerification(bool, PhoneVerificationFailureType)

What became of sending a code to a phone number, or of checking one.

public PhoneVerification(bool Succeeded, PhoneVerificationFailureType Failure)

Parameters

Succeeded bool

Whether the code was sent, or whether the code checked was the right one.

Failure PhoneVerificationFailureType

Why not, or None.

Properties

Failure

Why not, or None.

public PhoneVerificationFailureType Failure { get; init; }

Property Value

PhoneVerificationFailureType

Succeeded

Whether the code was sent, or whether the code checked was the right one.

public bool Succeeded { get; init; }

Property Value

bool

Success

A code sent, or a code accepted.

public static PhoneVerification Success { get; }

Property Value

PhoneVerification

Methods

Failed(PhoneVerificationFailureType)

Creates a failed result.

public static PhoneVerification Failed(PhoneVerificationFailureType failure)

Parameters

failure PhoneVerificationFailureType

Why it failed.

Returns

PhoneVerification