Table of Contents

Class OpenUrlSuggestion

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

A open URL suggestion.

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

Constructors

OpenUrlSuggestion(string, string, Uri, string)

A open URL suggestion.

public OpenUrlSuggestion(string Text, string PostbackData, Uri Url, string Description)

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.

Url Uri

The URL to open when the suggestion is tapped.

Description string

A short description of the URL for accessibility purposes.

Properties

Description

A short description of the URL for accessibility purposes.

public string Description { 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

Url

The URL to open when the suggestion is tapped.

public Uri Url { get; init; }

Property Value

Uri

Methods

GetErrors()

Returns any validation errors for this suggestion.

public override IEnumerable<string> GetErrors()

Returns

IEnumerable<string>