Table of Contents

Struct GetTemplateFragmentRequest

Namespace
Vonage.VerifyV2.GetTemplateFragment
Assembly
Vonage.dll

Represents a request to retrieve a single template fragment by its template ID and fragment ID.

public readonly struct GetTemplateFragmentRequest : IVonageRequest
Implements
Inherited Members

Properties

TemplateFragmentId

The unique identifier (UUID) of the template fragment to retrieve.

public Guid TemplateFragmentId { get; }

Property Value

Guid

TemplateId

The unique identifier (UUID) of the parent template.

public Guid TemplateId { get; }

Property Value

Guid

Methods

BuildRequestMessage()

Converts the request to a HttpRequest.

public HttpRequestMessage BuildRequestMessage()

Returns

HttpRequestMessage

The Http request.

Parse(Guid, Guid)

Creates a new request to retrieve a template fragment.

public static Result<GetTemplateFragmentRequest> Parse(Guid templateId, Guid templateFragmentId)

Parameters

templateId Guid

The UUID of the parent template.

templateFragmentId Guid

The UUID of the template fragment to retrieve.

Returns

Result<GetTemplateFragmentRequest>

A Result<T> containing the request if successful, or validation errors if any ID is empty.

Examples

var request = GetTemplateFragmentRequest.Parse(
    Guid.Parse("8f35a1a7-eb2f-4552-8fdf-fffdaee41bc9"),
    Guid.Parse("c70f446e-997a-4313-a081-60a02a31dc19"));
var response = await client.GetTemplateFragmentAsync(request);
See Also