StoreItem.js

  1. /**
  2. * An API returned StoreItem object
  3. * @class StoreItem
  4. */
  5. class StoreItem {
  6. constructor(content) {
  7. /**
  8. * Link to picture of the item
  9. * @type {string}
  10. */
  11. this.imageUrl = content.imageUrl;
  12. /**
  13. * ID of the item
  14. * @type {number}
  15. */
  16. this.manifestId = content.manifestId;
  17. /**
  18. * Name of the item
  19. * @type {string}
  20. */
  21. this.name = content.name;
  22. /**
  23. * Rarity of the item
  24. * @type {string}
  25. */
  26. this.rarity = content.rarity;
  27. /**
  28. * Category of the store the item is in (BRDailyStorefront or BRWeeklyStorefront)
  29. * @type {string}
  30. */
  31. this.storeCategory = content.storeCategory;
  32. /**
  33. * Cost of the item in vBucks
  34. * @type {number}
  35. */
  36. this.vBucks = content.vBucks;
  37. }
  38. }
  39. module.exports = StoreItem;