Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class InventoryResponse

Represents a response from a call to Request(InventoryRequest).

Inheritance
System.Object
InventoryResponse
Namespace: Mediachase.Commerce.InventoryService
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class InventoryResponse : Object

Constructors

InventoryResponse()

Creates a new instance of InventoryResponse.

Declaration
public InventoryResponse()

InventoryResponse(InventoryResponse)

Creates a new instance of InventoryResponse as a deep copy of another InventoryResponse.

Declaration
public InventoryResponse(InventoryResponse other)
Parameters
Type Name Description
InventoryResponse other

The InventoryResponse to copy.

InventoryResponse(Boolean, DateTime, IList<InventoryResponseItem>, Object)

Creates a new instance of InventoryResponse with the specified values.

Declaration
public InventoryResponse(bool isSuccess, DateTime requestDateUtc, IList<InventoryResponseItem> items, object context)
Parameters
Type Name Description
System.Boolean isSuccess

The value for .

System.DateTime requestDateUtc

The value for .

System.Collections.Generic.IList<InventoryResponseItem> items

The value for .

System.Object context

The value for .

Properties

Context

Gets or sets additional provider-specific data for the response.

Declaration
public virtual object Context { get; set; }
Property Value
Type Description
System.Object

IsSuccess

Gets or sets a value indicating if the overall operation was a success.

Declaration
public virtual bool IsSuccess { get; set; }
Property Value
Type Description
System.Boolean

Items

Gets or sets a collection of responses for each item in the request.

Declaration
public virtual IList<InventoryResponseItem> Items { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<InventoryResponseItem>

RequestDateUtc

Gets or sets the request date, in UTC. This will be the same request date as specified in the request.

Declaration
public virtual DateTime RequestDateUtc { get; set; }
Property Value
Type Description
System.DateTime