Class MultipleItemsContentBuilder
- Namespace
- Vonage.Messages.WhatsApp.ProductMessages.MultipleItems
- Assembly
- Vonage.dll
Represents a builder for a Multiple Items product message content.
public class MultipleItemsContentBuilder : IBuilderForHeader, IBuilderForBody, IBuilderForFooter, IBuilderForCatalog, IBuilderForOptionalSection, IBuildable, IBuilderForMandatorySection, IBuilderForProductRetailer
- Inheritance
-
MultipleItemsContentBuilder
- Implements
- Inherited Members
Methods
Build()
Builds the product message using all specified values.
public ProductMessage<MultipleItemsMessageContent> Build()
Returns
- ProductMessage<MultipleItemsMessageContent>
The product message.
Initialize()
Initializes a builder.
public static IBuilderForHeader Initialize()
Returns
- IBuilderForHeader
The builder.
WithBody(string)
Sets the Body.
public IBuilderForFooter WithBody(string value)
Parameters
valuestringThe body.
Returns
- IBuilderForFooter
The builder.
WithCatalogId(string)
Sets the CatalogId.
public IBuilderForMandatorySection WithCatalogId(string value)
Parameters
valuestringThe catalog Id.
Returns
- IBuilderForMandatorySection
The builder.
WithFooter(string)
Sets the Footer.
public IBuilderForCatalog WithFooter(string value)
Parameters
valuestringThe footer.
Returns
- IBuilderForCatalog
The builder.
WithHeader(string)
Sets the Header.
public IBuilderForBody WithHeader(string value)
Parameters
valuestringThe header.
Returns
- IBuilderForBody
The builder.
WithProductRetailer(string)
Sets the product retailer Id to the previous section.
public IBuilderForOptionalSection WithProductRetailer(string value)
Parameters
valuestringThe product retailer Id.
Returns
- IBuilderForOptionalSection
The builder.
WithSection(string)
Sets a section.
public IBuilderForProductRetailer WithSection(string value)
Parameters
valuestringThe section.
Returns
- IBuilderForProductRetailer
The builder.