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