Fix up a few types and comments

This commit is contained in:
CWX
2025-01-06 23:58:18 +00:00
parent 782f95528d
commit aef23c9ce1
2 changed files with 46 additions and 44 deletions
@@ -8,5 +8,5 @@ public class GetSuitsResponse
public string Id { get; set; }
[JsonPropertyName("suites")]
public string[] Suites { get; set; }
public List<string> Suites { get; set; }
}
@@ -10,24 +10,26 @@ public class ItemEventRouterBase
{
[JsonPropertyName("warnings")]
public List<Warning> Warnings { get; set; }
[JsonPropertyName("profileChanges")]
public object ProfileChanges { get; set; } // Note: using object to accommodate string or TProfileChanges
public object ProfileChanges { get; set; } // TODO: Types given TProfileChanges | ""
}
public class TProfileChanges : Dictionary<string, ProfileChange> { }
public class TProfileChanges : Dictionary<string, ProfileChange>
{
}
public class Warning
{
[JsonPropertyName("index")]
public int Index { get; set; }
[JsonPropertyName("errmsg")]
public string ErrorMessage { get; set; }
[JsonPropertyName("code")]
public string Code { get; set; }
[JsonPropertyName("data")]
public object Data { get; set; }
}
@@ -36,53 +38,53 @@ public class ProfileChange
{
[JsonPropertyName("_id")]
public string Id { get; set; }
[JsonPropertyName("experience")]
public int Experience { get; set; }
[JsonPropertyName("quests")]
public List<Quest> Quests { get; set; }
[JsonPropertyName("ragFairOffers")]
public List<RagfairOffer> RagFairOffers { get; set; }
[JsonPropertyName("weaponBuilds")]
public List<WeaponBuildChange> WeaponBuilds { get; set; }
[JsonPropertyName("equipmentBuilds")]
public List<EquipmentBuildChange> EquipmentBuilds { get; set; }
[JsonPropertyName("items")]
public ItemChanges Items { get; set; }
[JsonPropertyName("production")]
public Dictionary<string, Productive> Production { get; set; }
/** Hideout area improvement id */
[JsonPropertyName("improvements")]
public Dictionary<string, HideoutImprovement> Improvements { get; set; }
[JsonPropertyName("skills")]
public Skills Skills { get; set; }
[JsonPropertyName("health")]
public Common.Health Health { get; set; }
[JsonPropertyName("traderRelations")]
public Dictionary<string, TraderData> TraderRelations { get; set; }
[JsonPropertyName("moneyTransferLimitData")]
public MoneyTransferLimits MoneyTransferLimitData { get; set; }
[JsonPropertyName("repeatableQuests")]
public List<PmcDataRepeatableQuest> RepeatableQuests { get; set; }
[JsonPropertyName("recipeUnlocked")]
public Dictionary<string, bool> RecipeUnlocked { get; set; }
[JsonPropertyName("changedHideoutStashes")]
public Dictionary<string, HideoutStashItem> ChangedHideoutStashes { get; set; }
[JsonPropertyName("questsStatus")]
public List<QuestStatus> QuestsStatus { get; set; }
}
@@ -91,7 +93,7 @@ public class HideoutStashItem
{
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("tpl")]
public string Template { get; set; }
}
@@ -100,13 +102,13 @@ public class WeaponBuildChange
{
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("root")]
public string Root { get; set; }
[JsonPropertyName("items")]
public List<Item> Items { get; set; }
}
@@ -115,22 +117,22 @@ public class EquipmentBuildChange
{
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("root")]
public string Root { get; set; }
[JsonPropertyName("items")]
public List<Item> Items { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("fastpanel")]
public List<object> FastPanel { get; set; }
[JsonPropertyName("buildType")]
public EquipmentBuildType BuildType { get; set; }
}
@@ -139,10 +141,10 @@ public class ItemChanges
{
[JsonPropertyName("new")]
public List<Product> NewItems { get; set; }
[JsonPropertyName("change")]
public List<Product> ChangedItems { get; set; }
[JsonPropertyName("del")]
public List<Product> DeletedItems { get; set; } // Only needs _id property
}
@@ -152,16 +154,16 @@ public class TraderData
{
[JsonPropertyName("salesSum")]
public double SalesSum { get; set; }
[JsonPropertyName("standing")]
public double Standing { get; set; }
[JsonPropertyName("loyalty")]
public double Loyalty { get; set; }
[JsonPropertyName("unlocked")]
public bool Unlocked { get; set; }
[JsonPropertyName("disabled")]
public bool Disabled { get; set; }
}
@@ -170,19 +172,19 @@ public class Product
{
[JsonPropertyName("_id")]
public string Id { get; set; }
[JsonPropertyName("_tpl")]
public string Template { get; set; }
[JsonPropertyName("parentId")]
public string ParentId { get; set; }
[JsonPropertyName("slotId")]
public string SlotId { get; set; }
[JsonPropertyName("location")]
public ItemLocation Location { get; set; }
[JsonPropertyName("upd")]
public Upd Upd { get; set; }
}