Table of Contents

Struct VerifyRequest

Namespace
Vonage.NumberVerification.Verify
Assembly
Vonage.dll

Represents a request to verify if the specified phone number matches the one that the user is currently using.

public readonly struct VerifyRequest : IVonageRequest
Implements
Inherited Members

Properties

PhoneNumber

Subscriber number in E.164 format (starting with country code). Optionally prefixed with '+'.

[JsonConverter(typeof(PhoneNumberJsonConverter))]
[JsonPropertyOrder(0)]
[JsonPropertyName("phoneNumber")]
public PhoneNumber PhoneNumber { get; }

Property Value

PhoneNumber

Methods

BuildRequestMessage()

Converts the request to a HttpRequest.

public HttpRequestMessage BuildRequestMessage()

Returns

HttpRequestMessage

The Http request.

Parse(string)

Parses the input into an VerifyRequest.

public static Result<VerifyRequest> Parse(string number)

Parameters

number string

The phone number.

Returns

Result<VerifyRequest>

Success if the input matches all requirements. Failure otherwise.