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
SucceededboolWhether the code was sent, or whether the code checked was the right one.
FailurePhoneVerificationFailureTypeWhy not, or None.
Properties
Failure
Why not, or None.
public PhoneVerificationFailureType Failure { get; init; }
Property Value
Succeeded
Whether the code was sent, or whether the code checked was the right one.
public bool Succeeded { get; init; }
Property Value
Success
A code sent, or a code accepted.
public static PhoneVerification Success { get; }
Property Value
Methods
Failed(PhoneVerificationFailureType)
Creates a failed result.
public static PhoneVerification Failed(PhoneVerificationFailureType failure)
Parameters
failurePhoneVerificationFailureTypeWhy it failed.