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
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.
PhoneNumberstringThe 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
PhoneNumber
The phone number to dial in E.164 format.
public string PhoneNumber { 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
Methods
GetErrors()
Returns any validation errors for this suggestion.
public override IEnumerable<string> GetErrors()
Returns
WithFallbackUrl(Uri)
Returns a suggestion with a fallback url.
public DialSuggestion WithFallbackUrl(Uri url)
Parameters
urlUriA URL to open if the device is unable to place a call.
Returns
- DialSuggestion
The suggestion.