Table of Contents

Class ProductMessage<T>

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

Represents a product message. Product messages provide a way for businesses to showcase and share products and services with customers via a WhatsApp chat, and for those customers to browse items, add them to a cart, and submit an order without leaving the chat.

public record ProductMessage<T> : IEquatable<ProductMessage<T>> where T : IProductMessageContent

Type Parameters

T

Type of the content.

Inheritance
ProductMessage<T>
Implements
Inherited Members

Constructors

ProductMessage(T)

Represents a product message. Product messages provide a way for businesses to showcase and share products and services with customers via a WhatsApp chat, and for those customers to browse items, add them to a cart, and submit an order without leaving the chat.

public ProductMessage(T Details)

Parameters

Details T

Contains the details of the message.

Properties

Details

Contains the details of the message.

[JsonPropertyOrder(1)]
[JsonPropertyName("interactive")]
public T Details { get; init; }

Property Value

T

Type

The type of the product message.

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

Property Value

string