Table of Contents

Class DialSuggestion

Namespace
Vonage.Messages.Rcs.Suggestions
Assembly
Vonage.dll

A dial suggestion.

public record DialSuggestion : SuggestionBase, IEquatable<SuggestionBase>, IEquatable<DialSuggestion>
Inheritance
DialSuggestion
Implements
Inherited Members

Constructors

DialSuggestion(string, string, string)

A dial suggestion.

public DialSuggestion(string Text, string PostbackData, string PhoneNumber)

Parameters

Text string

The text to display on the suggestion chip.

PostbackData string

The data that will be sent back in the button.payload property of a button message via the inbound message webhook when the user taps the suggestion chip.

PhoneNumber string

The phone number to dial in E.164 format.

Properties

FallbackUrl

A URL to open if the device is unable to place a call.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Uri FallbackUrl { get; init; }

Property Value

Uri

PhoneNumber

The phone number to dial in E.164 format.

public string PhoneNumber { get; init; }

Property Value

string

PostbackData

The data that will be sent back in the button.payload property of a button message via the inbound message webhook when the user taps the suggestion chip.

public override string PostbackData { get; init; }

Property Value

string

Text

The text to display on the suggestion chip.

public override string Text { get; init; }

Property Value

string

Type

The type for the suggestion object.

[JsonIgnore]
public override string Type { get; }

Property Value

string

Methods

GetErrors()

Returns any validation errors for this suggestion.

public override IEnumerable<string> GetErrors()

Returns

IEnumerable<string>

WithFallbackUrl(Uri)

Returns a suggestion with a fallback url.

public DialSuggestion WithFallbackUrl(Uri url)

Parameters

url Uri

A URL to open if the device is unable to place a call.

Returns

DialSuggestion

The suggestion.