53 lines
1.6 KiB
C#
Raw Normal View History

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
{
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; }
2022-01-15 17:20:38 +00:00
public string? side { get; set; }
public int? level { 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
public class Item
{
public string _id { get; set; }
public string _tpl { get; set; }
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; }
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
}