Table of Contents

Class SingleItemMessageContent

Namespace
Vonage.Messages.WhatsApp.ProductMessages.SingleItem
Assembly
Vonage.dll

Represents the content for Single Item product messages.

public record SingleItemMessageContent : IProductMessageContent, IEquatable<SingleItemMessageContent>
Inheritance
SingleItemMessageContent
Implements
Inherited Members

Constructors

SingleItemMessageContent(Maybe<TextSection>, Maybe<TextSection>, SingleItemAction)

Represents the content for Single Item product messages.

public SingleItemMessageContent(Maybe<TextSection> Body, Maybe<TextSection> Footer, SingleItemAction Action)

Parameters

Body Maybe<TextSection>

The value of the body text.

Footer Maybe<TextSection>

The value of the footer text.

Action SingleItemAction

Contains data about the product displayed in the message.

Properties

Action

Contains data about the product displayed in the message.

[JsonPropertyOrder(3)]
public SingleItemAction Action { get; init; }

Property Value

SingleItemAction

Body

The value of the body text.

[JsonPropertyOrder(1)]
[JsonConverter(typeof(MaybeJsonConverter<TextSection>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<TextSection> Body { get; init; }

Property Value

Maybe<TextSection>

The value of the footer text.

[JsonPropertyOrder(2)]
[JsonConverter(typeof(MaybeJsonConverter<TextSection>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<TextSection> Footer { get; init; }

Property Value

Maybe<TextSection>

Type

The content type.

[JsonPropertyOrder(0)]
public string Type { get; }

Property Value

string