summaryrefslogtreecommitdiff
path: root/iridescence/src/models/product.js
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-07 20:31:03 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-07 20:31:03 -0500
commit7dd36c0e699a1154c7163f25bf488fbd63edeafe (patch)
tree1a0d76539acba7b77f1abe9fb443ac98523ed7e5 /iridescence/src/models/product.js
parent2c408648c70614a88c0412faf6d3a00d147379a2 (diff)
downloadtheglassyladies-7dd36c0e699a1154c7163f25bf488fbd63edeafe.tar.xz
theglassyladies-7dd36c0e699a1154c7163f25bf488fbd63edeafe.zip
updated photo sets to not return original, added models to front,
implemented front-to-back requests
Diffstat (limited to 'iridescence/src/models/product.js')
-rw-r--r--iridescence/src/models/product.js16
1 files changed, 16 insertions, 0 deletions
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);
+ }
+}