Class CartMessage
- Namespace
- Dynamicweb.Ecommerce.Frontend.Cart
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a single message within a cart command result.
public sealed class CartMessage
- Inheritance
-
CartMessage
- Inherited Members
Constructors
CartMessage(bool, CartResultType)
Initializes a new instance of the CartMessage class.
public CartMessage(bool isSuccess = true, CartResultType resultType = CartResultType.None)
Parameters
isSuccessboolWhether this message represents success.
resultTypeCartResultTypeThe associated result type.
CartMessage(string?, string?, bool, CartResultType)
Initializes a new instance of the CartMessage class with all properties.
public CartMessage(string? id = null, string? name = null, bool isSuccess = true, CartResultType resultType = CartResultType.None)
Parameters
idstringThe identifier related to this message.
namestringThe name related to this message.
isSuccessboolWhether this message represents success.
resultTypeCartResultTypeThe associated result type.
Properties
Id
Gets or sets the identifier related to this message.
public string? Id { get; set; }
Property Value
IsSuccess
Gets or sets a value indicating whether this message represents a successful operation.
public bool IsSuccess { get; set; }
Property Value
Name
Gets or sets the name related to this message (e.g., cart name, product name).
public string? Name { get; set; }
Property Value
ResultType
Gets or sets the result type associated with this message.
public CartResultType ResultType { get; set; }