update assort class

This commit is contained in:
Chomp 2022-01-12 15:06:36 +00:00
parent db4d73bf4c
commit 39bc89fce1

View File

@ -1,36 +1,42 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text;
namespace AssortValidator.Common.Models namespace AssortValidator.Common.Models
{ {
public class AssortRoot
{
public int err { get; set; }
public object errmsg { get; set; }
public Assort data { get; set; }
}
public class Assort public class Assort
{ {
public int nextResupply { get; set; }
public List<Item> items { get; set; } public List<Item> items { get; set; }
public Dictionary<string, List<List<BarterDetails>>> barter_scheme { get; set; } public Dictionary<string, List<List<BarterDetails>>> barter_scheme { get; set; }
public Dictionary<string, int> loyal_level_items { get; set; } public Dictionary<string, int> loyal_level_items { get; set; }
}
public class BarterDetails public class BarterDetails
{ {
public int count { get; set; } public double count { get; set; }
public string _tpl { get; set; } public string _tpl { get; set; }
} }
public class Item public class Item
{ {
public string _id { get; set; } public string _id { get; set; }
public string _tpl { get; set; } public string _tpl { get; set; }
public string parentId { get; set; } public string parentId { get; set; }
public string slotId { get; set; } public string slotId { get; set; }
public Upd upd { get; set; } public Upd upd { get; set; }
} }
public class Upd public class Upd
{ {
public bool UnlimitedCount { get; set; } public int? BuyRestrictionMax { get; set; }
public int? StackObjectsCount { get; set; } public int BuyRestrictionCurrent { get; set; }
public int? BuyRestrictionMax { get; set; } public int StackObjectsCount { get; set; }
public int? BuyRestrictionCurrent { get; set; } }
} }
} }