foundation is set
This commit is contained in:
23
whatsapp-web.js/src/models/website.js
Normal file
23
whatsapp-web.js/src/models/website.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const {Product} = require('./product');
|
||||
|
||||
class Website {
|
||||
|
||||
/**
|
||||
* @param {Map<string,string>} details
|
||||
*/
|
||||
constructor(details){
|
||||
this.details = details;
|
||||
this.products = [];
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {Product} product
|
||||
*/
|
||||
addProduct(product){
|
||||
this.products.push(product);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports.Website = Website;
|
||||
Reference in New Issue
Block a user