Table of Contents

Class RcsMessageBase

Namespace
Vonage.Messages.Rcs
Assembly
Vonage.dll

Base class for all RCS (Rich Communication Services) message requests.

public abstract class RcsMessageBase : MessageRequestBase, IMessage
Inheritance
RcsMessageBase
Implements
Derived
Inherited Members

Properties

Rcs

RCS-specific configuration including card orientation, width, and image alignment.

[JsonPropertyName("rcs")]
[JsonPropertyOrder(90)]
public MessageRcs? Rcs { get; set; }

Property Value

MessageRcs?

TimeToLive

The duration in seconds the delivery of a message will be attempted. By default, Vonage attempts delivery for 72 hours, however the maximum effective value depends on the operator and is typically 24 - 48 hours. We recommend this value should be kept at its default or at least 30 minutes.

[JsonPropertyName("ttl")]
[JsonPropertyOrder(92)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public int TimeToLive { get; set; }

Property Value

int

TrustedNumber

Allows to skip fraud checks on a per-message basis. The feature is feature-flagged and must be enabled for the api key.

[JsonIgnore]
[Obsolete("Favor 'TrustedRecipient' instead.")]
public bool TrustedNumber { get; set; }

Property Value

bool

TrustedRecipient

Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender (Traffic Rules, SMS Burst Protection, AIT Protection). This parameter only has any effect for accounts subscribed to Fraud Defender Premium.

[JsonPropertyOrder(91)]
[JsonPropertyName("trusted_recipient")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool TrustedRecipient { get; set; }

Property Value

bool

Methods

GetErrors()

Returns any validation errors for this message. An empty collection means the message is valid.

public override IEnumerable<string> GetErrors()

Returns

IEnumerable<string>

A collection of error messages.