Table of Contents

Class SingleItemContentBuilder

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

Represents a builder for Single Items product message content.

public class SingleItemContentBuilder : IOptionalBuilderForBody, IBuilderForFooter, IBuilderForCatalog, IBuilderForProductRetailer, IBuildable
Inheritance
SingleItemContentBuilder
Implements
Inherited Members

Methods

Build()

Builds the product message using all specified values.

public ProductMessage<SingleItemMessageContent> Build()

Returns

ProductMessage<SingleItemMessageContent>

The product message.

Initialize()

Initializes a builder.

public static IOptionalBuilderForBody Initialize()

Returns

IOptionalBuilderForBody

The builder

WithBody(string)

Sets the Body text.

public IBuilderForFooter WithBody(string value)

Parameters

value string

The Body.

Returns

IBuilderForFooter

The builder

WithCatalogId(string)

Sets the CatalogId.

public IBuilderForProductRetailer WithCatalogId(string value)

Parameters

value string

The catalog Id.

Returns

IBuilderForProductRetailer

The builder

WithFooter(string)

Sets the Footer text.

public IBuilderForCatalog WithFooter(string value)

Parameters

value string

The Footer.

Returns

IBuilderForCatalog

The builder

WithProductRetailerId(string)

Sets the product retailer Id.

public IBuildable WithProductRetailerId(string value)

Parameters

value string

The product retailer Id.

Returns

IBuildable

The builder