diff options
| author | Adam T. Carpenter <atc@53hor.net> | 2020-11-07 20:31:03 -0500 | 
|---|---|---|
| committer | Adam T. Carpenter <atc@53hor.net> | 2020-11-07 20:31:03 -0500 | 
| commit | 7dd36c0e699a1154c7163f25bf488fbd63edeafe (patch) | |
| tree | 1a0d76539acba7b77f1abe9fb443ac98523ed7e5 /iridescence/src/models/product.js | |
| parent | 2c408648c70614a88c0412faf6d3a00d147379a2 (diff) | |
| download | theglassyladies-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.js | 16 | 
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); +  } +} |