Ghost/ghost/post-events/src/PostsBulkUnpublishedEvent.ts

14 lines
334 B
TypeScript
Raw Normal View History

export class PostsBulkUnpublishedEvent {
data: string[];
timestamp: Date;
constructor(data: string[], timestamp: Date) {
this.data = data;
this.timestamp = timestamp;
}
static create(data: string[], timestamp = new Date()) {
return new PostsBulkUnpublishedEvent(data, timestamp);
}
}