diff options
Diffstat (limited to 'iridescence/src/models')
-rw-r--r-- | iridescence/src/models/photo_set.js | 10 | ||||
-rw-r--r-- | iridescence/src/models/product.js | 16 |
2 files changed, 26 insertions, 0 deletions
diff --git a/iridescence/src/models/photo_set.js b/iridescence/src/models/photo_set.js new file mode 100644 index 0000000..7d7213c --- /dev/null +++ b/iridescence/src/models/photo_set.js @@ -0,0 +1,10 @@ +export default class PhotoSet { + id = 0; + fullsize = ""; + thumbnail = ""; + base = ""; + + constructor(json) { + Object.assign(this, json); + } +} diff --git a/iridescence/src/models/product.js b/iridescence/src/models/product.js new file mode 100644 index 0000000..c826073 --- /dev/null +++ b/iridescence/src/models/product.js @@ -0,0 +1,16 @@ +export default class Product { + id = 0; + name = ""; + description = ""; + cents = 0; + quantity = 0; + featured = false; + photo_base = ""; + photo_fullsize = ""; + photo_thumbnail = ""; + category = ""; + + constructor(json) { + Object.assign(this, json); + } +} |