Class OpenWebviewUrlSuggestion
- Namespace
- Vonage.Messages.Rcs.Suggestions
- Assembly
- Vonage.dll
A open URL in webview suggestion.
public record OpenWebviewUrlSuggestion : SuggestionBase, IEquatable<SuggestionBase>, IEquatable<OpenWebviewUrlSuggestion>
- Inheritance
-
OpenWebviewUrlSuggestion
- Implements
- Inherited Members
Constructors
OpenWebviewUrlSuggestion(string, string, Uri, string)
A open URL in webview suggestion.
public OpenWebviewUrlSuggestion(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
ViewMode
The mode for displaying the URL in the webview window.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(EnumDescriptionJsonConverter<OpenWebviewUrlSuggestion.ViewModeValue>))]
public OpenWebviewUrlSuggestion.ViewModeValue? ViewMode { get; }
Property Value
Methods
GetErrors()
Returns any validation errors for this suggestion.
public override IEnumerable<string> GetErrors()
Returns
WithViewMode(ViewModeValue)
Returns a suggestion with view mode.
public OpenWebviewUrlSuggestion WithViewMode(OpenWebviewUrlSuggestion.ViewModeValue value)
Parameters
valueOpenWebviewUrlSuggestion.ViewModeValueThe mode for displaying the URL in the webview window.
Returns
- OpenWebviewUrlSuggestion
The suggestion.