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
HeaderTextSectionThe value of the header text.
BodyTextSectionThe value of the body text.
FooterMaybe<TextSection>The value of the footer text.
ActionMultipleItemsActionContains 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
Body
The value of the body text.
[JsonPropertyOrder(2)]
public TextSection Body { get; init; }
Property Value
Footer
The value of the footer text.
[JsonPropertyOrder(3)]
[JsonConverter(typeof(MaybeJsonConverter<TextSection>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<TextSection> Footer { get; init; }
Property Value
Header
The value of the header text.
[JsonPropertyOrder(1)]
public TextSection Header { get; init; }
Property Value
Type
The content type.
[JsonPropertyOrder(0)]
public string Type { get; }