Class CreateCalendarEventSuggestion
- Namespace
- Vonage.Messages.Rcs.Suggestions
- Assembly
- Vonage.dll
A create calendar event suggestion.
public record CreateCalendarEventSuggestion : SuggestionBase, IEquatable<SuggestionBase>, IEquatable<CreateCalendarEventSuggestion>
- Inheritance
-
CreateCalendarEventSuggestion
- Implements
- Inherited Members
Constructors
CreateCalendarEventSuggestion(string, string, DateTime, DateTime, string, string)
A create calendar event suggestion.
public CreateCalendarEventSuggestion(string Text, string PostbackData, DateTime StartTime, DateTime EndTime, string Title, 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.
StartTimeDateTimeThe start time of the calendar event.
EndTimeDateTimeThe end time of the calendar event.
TitlestringThe title of the calendar event.
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
EndTime
The end time of the calendar event.
[JsonIgnore]
public DateTime EndTime { get; init; }
Property Value
FallbackUrl
A URL to open if the device is unable to place a call.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Uri FallbackUrl { get; }
Property Value
FormattedEndTime
EndTime formatted to ISO 8601
[JsonPropertyName("end_time")]
public string FormattedEndTime { get; }
Property Value
FormattedStartTime
StartTime formatted to ISO 8601
[JsonPropertyName("start_time")]
public string FormattedStartTime { get; }
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
StartTime
The start time of the calendar event.
[JsonIgnore]
public DateTime StartTime { get; init; }
Property Value
Text
The text to display on the suggestion chip.
public override string Text { get; init; }
Property Value
Title
The title of the calendar event.
public string Title { 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 CreateCalendarEventSuggestion WithFallbackUrl(Uri url)
Parameters
urlUriA URL to open if the device is unable to place a call.
Returns
- CreateCalendarEventSuggestion
The suggestion.