From 39bc89fce1157f1e1f0f41f7262f2a4b3490a83d Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 12 Jan 2022 15:06:36 +0000 Subject: [PATCH] update assort class --- AssortValidator.Common/Models/Assort.cs | 50 ++++++++++++++----------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/AssortValidator.Common/Models/Assort.cs b/AssortValidator.Common/Models/Assort.cs index bac31a6..470bb70 100644 --- a/AssortValidator.Common/Models/Assort.cs +++ b/AssortValidator.Common/Models/Assort.cs @@ -1,36 +1,42 @@ using System; using System.Collections.Generic; -using System.Text; 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 int nextResupply { get; set; } public List items { get; set; } public Dictionary>> barter_scheme { get; set; } public Dictionary loyal_level_items { get; set; } - } - public class BarterDetails - { - public int count { get; set; } - public string _tpl { get; set; } - } + public class BarterDetails + { + public double count { get; set; } + public string _tpl { get; set; } + } - public class Item - { - public string _id { get; set; } - public string _tpl { get; set; } - public string parentId { get; set; } - public string slotId { get; set; } - public Upd upd { get; set; } - } + public class Item + { + public string _id { get; set; } + public string _tpl { get; set; } + public string parentId { get; set; } + public string slotId { get; set; } + public Upd upd { get; set; } + } - public class Upd - { - public bool UnlimitedCount { get; set; } - public int? StackObjectsCount { get; set; } - public int? BuyRestrictionMax { get; set; } - public int? BuyRestrictionCurrent { get; set; } + public class Upd + { + public int? BuyRestrictionMax { get; set; } + public int BuyRestrictionCurrent { get; set; } + public int StackObjectsCount { get; set; } + } } -} +} \ No newline at end of file