Blizzard Api Wrapper for C#

Item.cs 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. using Newtonsoft.Json;
  2. namespace BlizzSharp.Data
  3. {
  4. public class Item
  5. {
  6. [JsonProperty("id")]
  7. public long Id { get; set; }
  8. [JsonProperty("disenchantingSkillRank")]
  9. public long DisenchantingSkillRank { get; set; }
  10. [JsonProperty("description")]
  11. public string Description { get; set; }
  12. [JsonProperty("name")]
  13. public string Name { get; set; }
  14. [JsonProperty("icon")]
  15. public string Icon { get; set; }
  16. [JsonProperty("stackable")]
  17. public long Stackable { get; set; }
  18. [JsonProperty("itemBind")]
  19. public long ItemBind { get; set; }
  20. [JsonProperty("bonusStats")]
  21. public BonusStat[] BonusStats { get; set; }
  22. [JsonProperty("itemSpells")]
  23. public object[] ItemSpells { get; set; }
  24. [JsonProperty("buyPrice")]
  25. public long BuyPrice { get; set; }
  26. [JsonProperty("itemClass")]
  27. public long ItemClass { get; set; }
  28. [JsonProperty("itemSubClass")]
  29. public long ItemSubClass { get; set; }
  30. [JsonProperty("containerSlots")]
  31. public long ContainerSlots { get; set; }
  32. [JsonProperty("weaponInfo")]
  33. public WeaponInfo WeaponInfo { get; set; }
  34. [JsonProperty("inventoryType")]
  35. public long InventoryType { get; set; }
  36. [JsonProperty("equippable")]
  37. public bool Equippable { get; set; }
  38. [JsonProperty("itemLevel")]
  39. public long ItemLevel { get; set; }
  40. [JsonProperty("maxCount")]
  41. public long MaxCount { get; set; }
  42. [JsonProperty("maxDurability")]
  43. public long MaxDurability { get; set; }
  44. [JsonProperty("minFactionId")]
  45. public long MinFactionId { get; set; }
  46. [JsonProperty("minReputation")]
  47. public long MinReputation { get; set; }
  48. [JsonProperty("quality")]
  49. public long Quality { get; set; }
  50. [JsonProperty("sellPrice")]
  51. public long SellPrice { get; set; }
  52. [JsonProperty("requiredSkill")]
  53. public long RequiredSkill { get; set; }
  54. [JsonProperty("requiredLevel")]
  55. public long RequiredLevel { get; set; }
  56. [JsonProperty("requiredSkillRank")]
  57. public long RequiredSkillRank { get; set; }
  58. [JsonProperty("itemSource")]
  59. public ItemSource ItemSource { get; set; }
  60. [JsonProperty("baseArmor")]
  61. public long BaseArmor { get; set; }
  62. [JsonProperty("hasSockets")]
  63. public bool HasSockets { get; set; }
  64. [JsonProperty("isAuctionable")]
  65. public bool IsAuctionable { get; set; }
  66. [JsonProperty("armor")]
  67. public long Armor { get; set; }
  68. [JsonProperty("displayInfoId")]
  69. public long DisplayInfoId { get; set; }
  70. [JsonProperty("nameDescription")]
  71. public string NameDescription { get; set; }
  72. [JsonProperty("nameDescriptionColor")]
  73. public string NameDescriptionColor { get; set; }
  74. [JsonProperty("upgradable")]
  75. public bool Upgradable { get; set; }
  76. [JsonProperty("heroicTooltip")]
  77. public bool HeroicTooltip { get; set; }
  78. [JsonProperty("context")]
  79. public string Context { get; set; }
  80. [JsonProperty("bonusLists")]
  81. public object[] BonusLists { get; set; }
  82. [JsonProperty("availableContexts")]
  83. public string[] AvailableContexts { get; set; }
  84. [JsonProperty("bonusSummary")]
  85. public BonusSummary BonusSummary { get; set; }
  86. [JsonProperty("artifactId")]
  87. public long ArtifactId { get; set; }
  88. }
  89. public class BonusStat
  90. {
  91. [JsonProperty("stat")]
  92. public long Stat { get; set; }
  93. [JsonProperty("amount")]
  94. public long Amount { get; set; }
  95. }
  96. public class BonusSummary
  97. {
  98. [JsonProperty("defaultBonusLists")]
  99. public object[] DefaultBonusLists { get; set; }
  100. [JsonProperty("chanceBonusLists")]
  101. public object[] ChanceBonusLists { get; set; }
  102. [JsonProperty("bonusChances")]
  103. public object[] BonusChances { get; set; }
  104. }
  105. public class ItemSource
  106. {
  107. [JsonProperty("sourceId")]
  108. public long SourceId { get; set; }
  109. [JsonProperty("sourceType")]
  110. public string SourceType { get; set; }
  111. }
  112. public class WeaponInfo
  113. {
  114. [JsonProperty("damage")]
  115. public Damage Damage { get; set; }
  116. [JsonProperty("weaponSpeed")]
  117. public double WeaponSpeed { get; set; }
  118. [JsonProperty("dps")]
  119. public double Dps { get; set; }
  120. }
  121. public class Damage
  122. {
  123. [JsonProperty("min")]
  124. public long Min { get; set; }
  125. [JsonProperty("max")]
  126. public long Max { get; set; }
  127. [JsonProperty("exactMin")]
  128. public double ExactMin { get; set; }
  129. [JsonProperty("exactMax")]
  130. public double ExactMax { get; set; }
  131. }
  132. }