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; } public string Id { get; set; }
[JsonPropertyName("suites")] [JsonPropertyName("suites")]
public string[] Suites { get; set; } public List<string> Suites { get; set; }
} }
@@ -10,24 +10,26 @@ public class ItemEventRouterBase
{ {
[JsonPropertyName("warnings")] [JsonPropertyName("warnings")]
public List<Warning> Warnings { get; set; } public List<Warning> Warnings { get; set; }
[JsonPropertyName("profileChanges")] [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 public class Warning
{ {
[JsonPropertyName("index")] [JsonPropertyName("index")]
public int Index { get; set; } public int Index { get; set; }
[JsonPropertyName("errmsg")] [JsonPropertyName("errmsg")]
public string ErrorMessage { get; set; } public string ErrorMessage { get; set; }
[JsonPropertyName("code")] [JsonPropertyName("code")]
public string Code { get; set; } public string Code { get; set; }
[JsonPropertyName("data")] [JsonPropertyName("data")]
public object Data { get; set; } public object Data { get; set; }
} }
@@ -36,53 +38,53 @@ public class ProfileChange
{ {
[JsonPropertyName("_id")] [JsonPropertyName("_id")]
public string Id { get; set; } public string Id { get; set; }
[JsonPropertyName("experience")] [JsonPropertyName("experience")]
public int Experience { get; set; } public int Experience { get; set; }
[JsonPropertyName("quests")] [JsonPropertyName("quests")]
public List<Quest> Quests { get; set; } public List<Quest> Quests { get; set; }
[JsonPropertyName("ragFairOffers")] [JsonPropertyName("ragFairOffers")]
public List<RagfairOffer> RagFairOffers { get; set; } public List<RagfairOffer> RagFairOffers { get; set; }
[JsonPropertyName("weaponBuilds")] [JsonPropertyName("weaponBuilds")]
public List<WeaponBuildChange> WeaponBuilds { get; set; } public List<WeaponBuildChange> WeaponBuilds { get; set; }
[JsonPropertyName("equipmentBuilds")] [JsonPropertyName("equipmentBuilds")]
public List<EquipmentBuildChange> EquipmentBuilds { get; set; } public List<EquipmentBuildChange> EquipmentBuilds { get; set; }
[JsonPropertyName("items")] [JsonPropertyName("items")]
public ItemChanges Items { get; set; } public ItemChanges Items { get; set; }
[JsonPropertyName("production")] [JsonPropertyName("production")]
public Dictionary<string, Productive> Production { get; set; } public Dictionary<string, Productive> Production { get; set; }
/** Hideout area improvement id */ /** Hideout area improvement id */
[JsonPropertyName("improvements")] [JsonPropertyName("improvements")]
public Dictionary<string, HideoutImprovement> Improvements { get; set; } public Dictionary<string, HideoutImprovement> Improvements { get; set; }
[JsonPropertyName("skills")] [JsonPropertyName("skills")]
public Skills Skills { get; set; } public Skills Skills { get; set; }
[JsonPropertyName("health")] [JsonPropertyName("health")]
public Common.Health Health { get; set; } public Common.Health Health { get; set; }
[JsonPropertyName("traderRelations")] [JsonPropertyName("traderRelations")]
public Dictionary<string, TraderData> TraderRelations { get; set; } public Dictionary<string, TraderData> TraderRelations { get; set; }
[JsonPropertyName("moneyTransferLimitData")] [JsonPropertyName("moneyTransferLimitData")]
public MoneyTransferLimits MoneyTransferLimitData { get; set; } public MoneyTransferLimits MoneyTransferLimitData { get; set; }
[JsonPropertyName("repeatableQuests")] [JsonPropertyName("repeatableQuests")]
public List<PmcDataRepeatableQuest> RepeatableQuests { get; set; } public List<PmcDataRepeatableQuest> RepeatableQuests { get; set; }
[JsonPropertyName("recipeUnlocked")] [JsonPropertyName("recipeUnlocked")]
public Dictionary<string, bool> RecipeUnlocked { get; set; } public Dictionary<string, bool> RecipeUnlocked { get; set; }
[JsonPropertyName("changedHideoutStashes")] [JsonPropertyName("changedHideoutStashes")]
public Dictionary<string, HideoutStashItem> ChangedHideoutStashes { get; set; } public Dictionary<string, HideoutStashItem> ChangedHideoutStashes { get; set; }
[JsonPropertyName("questsStatus")] [JsonPropertyName("questsStatus")]
public List<QuestStatus> QuestsStatus { get; set; } public List<QuestStatus> QuestsStatus { get; set; }
} }
@@ -91,7 +93,7 @@ public class HideoutStashItem
{ {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
[JsonPropertyName("tpl")] [JsonPropertyName("tpl")]
public string Template { get; set; } public string Template { get; set; }
} }
@@ -100,13 +102,13 @@ public class WeaponBuildChange
{ {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Name { get; set; } public string Name { get; set; }
[JsonPropertyName("root")] [JsonPropertyName("root")]
public string Root { get; set; } public string Root { get; set; }
[JsonPropertyName("items")] [JsonPropertyName("items")]
public List<Item> Items { get; set; } public List<Item> Items { get; set; }
} }
@@ -115,22 +117,22 @@ public class EquipmentBuildChange
{ {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Name { get; set; } public string Name { get; set; }
[JsonPropertyName("root")] [JsonPropertyName("root")]
public string Root { get; set; } public string Root { get; set; }
[JsonPropertyName("items")] [JsonPropertyName("items")]
public List<Item> Items { get; set; } public List<Item> Items { get; set; }
[JsonPropertyName("type")] [JsonPropertyName("type")]
public string Type { get; set; } public string Type { get; set; }
[JsonPropertyName("fastpanel")] [JsonPropertyName("fastpanel")]
public List<object> FastPanel { get; set; } public List<object> FastPanel { get; set; }
[JsonPropertyName("buildType")] [JsonPropertyName("buildType")]
public EquipmentBuildType BuildType { get; set; } public EquipmentBuildType BuildType { get; set; }
} }
@@ -139,10 +141,10 @@ public class ItemChanges
{ {
[JsonPropertyName("new")] [JsonPropertyName("new")]
public List<Product> NewItems { get; set; } public List<Product> NewItems { get; set; }
[JsonPropertyName("change")] [JsonPropertyName("change")]
public List<Product> ChangedItems { get; set; } public List<Product> ChangedItems { get; set; }
[JsonPropertyName("del")] [JsonPropertyName("del")]
public List<Product> DeletedItems { get; set; } // Only needs _id property public List<Product> DeletedItems { get; set; } // Only needs _id property
} }
@@ -152,16 +154,16 @@ public class TraderData
{ {
[JsonPropertyName("salesSum")] [JsonPropertyName("salesSum")]
public double SalesSum { get; set; } public double SalesSum { get; set; }
[JsonPropertyName("standing")] [JsonPropertyName("standing")]
public double Standing { get; set; } public double Standing { get; set; }
[JsonPropertyName("loyalty")] [JsonPropertyName("loyalty")]
public double Loyalty { get; set; } public double Loyalty { get; set; }
[JsonPropertyName("unlocked")] [JsonPropertyName("unlocked")]
public bool Unlocked { get; set; } public bool Unlocked { get; set; }
[JsonPropertyName("disabled")] [JsonPropertyName("disabled")]
public bool Disabled { get; set; } public bool Disabled { get; set; }
} }
@@ -170,19 +172,19 @@ public class Product
{ {
[JsonPropertyName("_id")] [JsonPropertyName("_id")]
public string Id { get; set; } public string Id { get; set; }
[JsonPropertyName("_tpl")] [JsonPropertyName("_tpl")]
public string Template { get; set; } public string Template { get; set; }
[JsonPropertyName("parentId")] [JsonPropertyName("parentId")]
public string ParentId { get; set; } public string ParentId { get; set; }
[JsonPropertyName("slotId")] [JsonPropertyName("slotId")]
public string SlotId { get; set; } public string SlotId { get; set; }
[JsonPropertyName("location")] [JsonPropertyName("location")]
public ItemLocation Location { get; set; } public ItemLocation Location { get; set; }
[JsonPropertyName("upd")] [JsonPropertyName("upd")]
public Upd Upd { get; set; } public Upd Upd { get; set; }
} }