Table of Contents

Class MultipleItemsMessageContent

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

Represents the content for Multiple Item product messages.

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

Constructors

MultipleItemsMessageContent(TextSection, TextSection, Maybe<TextSection>, MultipleItemsAction)

Represents the content for Multiple Item product messages.

public MultipleItemsMessageContent(TextSection Header, TextSection Body, Maybe<TextSection> Footer, MultipleItemsAction Action)

Parameters

Header TextSection

The value of the header text.

Body TextSection

The value of the body text.

Footer Maybe<TextSection>

The value of the footer text.

Action MultipleItemsAction

Contains data about the product displayed in the message.

Properties

Action

Contains data about the product displayed in the message.

[JsonPropertyOrder(4)]
public MultipleItemsAction Action { get; init; }

Property Value

MultipleItemsAction

Body

The value of the body text.

[JsonPropertyOrder(2)]
public TextSection Body { get; init; }

Property Value

TextSection

The value of the footer text.

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

Property Value

Maybe<TextSection>

Header

The value of the header text.

[JsonPropertyOrder(1)]
public TextSection Header { get; init; }

Property Value

TextSection

Type

The content type.

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

Property Value

string