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
TextstringThe text to display on the suggestion chip.
PostbackDatastringThe 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.
UrlUriThe URL to open when the suggestion is tapped.
DescriptionstringA 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
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
Text
The text to display on the suggestion chip.
public override string Text { get; init; }
Property Value
Type
The type for the suggestion object.
[JsonIgnore]
public override string Type { get; }
Property Value
Url
The URL to open when the suggestion is tapped.
public Uri Url { get; init; }
Property Value
Methods
GetErrors()
Returns any validation errors for this suggestion.
public override IEnumerable<string> GetErrors()