mirror of
https://github.com/primedigitaltech/azon_seeker.git
synced 2026-02-01 20:33:40 +08:00
31 lines
776 B
TypeScript
31 lines
776 B
TypeScript
import { taskOptionBase } from '../interfaces/common';
|
|
import { BaseWorker } from './base';
|
|
import { LowesEvents, LowesWorker } from '../interfaces/lowes';
|
|
|
|
class LowesWorkerImpl extends BaseWorker<LowesEvents> implements LowesWorker {
|
|
private static instance: LowesWorker | null = null;
|
|
public static getInstance() {
|
|
if (!this.instance) {
|
|
this.instance = new LowesWorkerImpl();
|
|
}
|
|
return this.instance;
|
|
}
|
|
protected constructor() {
|
|
super();
|
|
}
|
|
|
|
runDetailPageTask(urls: string[], options?: taskOptionBase): Promise<void> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
stop(): Promise<void> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
}
|
|
|
|
export default {
|
|
getLowesWorker() {
|
|
return LowesWorkerImpl.getInstance();
|
|
},
|
|
};
|