UNPKG

listing-crawler-model

Version:

Listing crawler model for crawlers and tools

37 lines (31 loc) 683 B
'use strict'; const Agent = require('./Agent.js'); class Listing { constructor(id) { this.id = id; this.price = null; this.gps = null; this.adress = null; this.country = null; this.name = null; this.price = null; this.contacts = []; this.urlDetail = null; this.images = []; this.description = null; this.level = null; this.area = null; this.ownership = null; this.rooms = null; } addContact(contact) { this.contacts.push(contact); } addImage(image) { this.images.push(image); } } module.exports = Listing;