fase(3): crawling module domain and application
This commit is contained in:
31
dist/modules/crawling/domain/entities/CrawlState.js
vendored
Normal file
31
dist/modules/crawling/domain/entities/CrawlState.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CrawlState = void 0;
|
||||
const Entity_1 = require("../../../../shared/domain/Entity");
|
||||
class CrawlState extends Entity_1.Entity {
|
||||
constructor(props, id) {
|
||||
super(props, id);
|
||||
}
|
||||
static create(props, id) {
|
||||
return new CrawlState(props, id);
|
||||
}
|
||||
get url() {
|
||||
return this.props.url;
|
||||
}
|
||||
get title() {
|
||||
return this.props.title;
|
||||
}
|
||||
get domSnapshot() {
|
||||
return this.props.domSnapshot;
|
||||
}
|
||||
get visitCount() {
|
||||
return this.props.visitCount;
|
||||
}
|
||||
get stateId() {
|
||||
return this.props.stateId;
|
||||
}
|
||||
get sessionId() {
|
||||
return this.props.sessionId;
|
||||
}
|
||||
}
|
||||
exports.CrawlState = CrawlState;
|
||||
Reference in New Issue
Block a user