2021-09-10 17:57:24 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace AssortValidator.Common.Models
|
|
|
|
|
{
|
2022-01-12 15:06:36 +00:00
|
|
|
|
public class AssortRoot
|
|
|
|
|
{
|
|
|
|
|
public int err { get; set; }
|
|
|
|
|
public object errmsg { get; set; }
|
|
|
|
|
public Assort data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-10 17:57:24 +01:00
|
|
|
|
public class Assort
|
|
|
|
|
{
|
2022-01-13 15:21:55 +00:00
|
|
|
|
public Assort()
|
|
|
|
|
{
|
|
|
|
|
items = new List<Item>();
|
|
|
|
|
barter_scheme = new Dictionary<string, List<List<BarterDetails>>>();
|
|
|
|
|
loyal_level_items = new Dictionary<string, int>();
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-12 15:06:36 +00:00
|
|
|
|
public int nextResupply { get; set; }
|
2021-09-10 17:57:24 +01:00
|
|
|
|
public List<Item> items { get; set; }
|
|
|
|
|
public Dictionary<string, List<List<BarterDetails>>> barter_scheme { get; set; }
|
|
|
|
|
public Dictionary<string, int> loyal_level_items { get; set; }
|
|
|
|
|
|
2022-01-12 15:06:36 +00:00
|
|
|
|
public class BarterDetails
|
|
|
|
|
{
|
|
|
|
|
public double count { get; set; }
|
|
|
|
|
public string _tpl { get; set; }
|
|
|
|
|
}
|
2021-09-10 17:57:24 +01:00
|
|
|
|
|
2022-01-12 15:06:36 +00:00
|
|
|
|
public class Item
|
|
|
|
|
{
|
|
|
|
|
public string _id { get; set; }
|
|
|
|
|
public string _tpl { get; set; }
|
2022-01-12 23:30:51 +00:00
|
|
|
|
public string ItemName { get; set; }
|
2022-01-12 15:06:36 +00:00
|
|
|
|
public string parentId { get; set; }
|
|
|
|
|
public string slotId { get; set; }
|
|
|
|
|
public Upd upd { get; set; }
|
|
|
|
|
}
|
2021-09-10 17:57:24 +01:00
|
|
|
|
|
2022-01-12 15:06:36 +00:00
|
|
|
|
public class Upd
|
|
|
|
|
{
|
|
|
|
|
public int? BuyRestrictionMax { get; set; }
|
2022-01-13 15:21:55 +00:00
|
|
|
|
public int? BuyRestrictionCurrent { get; set; }
|
|
|
|
|
public int? StackObjectsCount { get; set; }
|
|
|
|
|
public bool? UnlimitedCount { get; set; }
|
2022-01-12 15:06:36 +00:00
|
|
|
|
}
|
2021-09-10 17:57:24 +01:00
|
|
|
|
}
|
2022-01-12 15:06:36 +00:00
|
|
|
|
}
|