Table of Contents

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

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.

StartTime DateTime

The start time of the calendar event.

EndTime DateTime

The end time of the calendar event.

Title string

The title of the calendar event.

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

EndTime

The end time of the calendar event.

[JsonIgnore]
public DateTime EndTime { get; init; }

Property Value

DateTime

FallbackUrl

A URL to open if the device is unable to place a call.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Uri FallbackUrl { get; }

Property Value

Uri

FormattedEndTime

EndTime formatted to ISO 8601

[JsonPropertyName("end_time")]
public string FormattedEndTime { get; }

Property Value

string

FormattedStartTime

StartTime formatted to ISO 8601

[JsonPropertyName("start_time")]
public string FormattedStartTime { get; }

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

StartTime

The start time of the calendar event.

[JsonIgnore]
public DateTime StartTime { get; init; }

Property Value

DateTime

Text

The text to display on the suggestion chip.

public override string Text { get; init; }

Property Value

string

Title

The title of the calendar event.

public string Title { get; init; }

Property Value

string

Type

The type for the suggestion object.

[JsonIgnore]
public override string Type { get; }

Property Value

string

Methods

GetErrors()

Returns any validation errors for this suggestion.

public override IEnumerable<string> GetErrors()

Returns

IEnumerable<string>

WithFallbackUrl(Uri)

Returns a suggestion with a fallback url.

public CreateCalendarEventSuggestion WithFallbackUrl(Uri url)

Parameters

url Uri

A URL to open if the device is unable to place a call.

Returns

CreateCalendarEventSuggestion

The suggestion.