2018-01-29 15:58:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2018-02-15 17:30:39 +01:00
|
|
|
|
namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator.Models
|
2018-01-29 15:58:08 +00:00
|
|
|
|
{
|
|
|
|
|
public class BasketData
|
|
|
|
|
{
|
|
|
|
|
public string BuyerId { get; set; }
|
|
|
|
|
public List<BasketDataItem> Items { get; set; }
|
|
|
|
|
|
|
|
|
|
public BasketData(string buyerId)
|
|
|
|
|
{
|
|
|
|
|
BuyerId = buyerId;
|
|
|
|
|
Items = new List<BasketDataItem>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class BasketDataItem
|
|
|
|
|
{
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
public string ProductId { get; set; }
|
|
|
|
|
public string ProductName { get; set; }
|
|
|
|
|
public decimal UnitPrice { get; set; }
|
|
|
|
|
public decimal OldUnitPrice { get; set; }
|
|
|
|
|
public int Quantity { get; set; }
|
|
|
|
|
public string PictureUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|