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