Class InventoryResponse
Represents a response from a call to Request(InventoryRequest).
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.InventoryService
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class InventoryResponse
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>, Guid, Object)
Creates a new instance of InventoryResponse with the specified values.
Declaration
[Obsolete("Use the overload method without ProviderKey instead. Will remain at least until November 2016.")]
public InventoryResponse(bool isSuccess, DateTime requestDateUtc, IList<InventoryResponseItem> items, Guid providerKey, 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.Guid | providerKey | The value for |
System.Object | context | The value for |
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> |
ProviderKey
Gets or sets a identifier for the provider producing this response.
Declaration
[Obsolete("This property is no longer used. Will remain at least until November 2016.")]
public virtual Guid ProviderKey { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
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 |