mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 08:38:41 +08:00
31 lines
548 B
TypeScript
31 lines
548 B
TypeScript
import {SyncConfig} from "./SyncConfig";
|
|
import {SyncItemStatus} from "../../../constant/Constsant";
|
|
|
|
export default class GlobalSyncStatusHolder {
|
|
public syncConfig: SyncConfig;
|
|
private total:number;
|
|
private handle:number;
|
|
|
|
constructor(syncConfig: SyncConfig) {
|
|
this.syncConfig = syncConfig;
|
|
this.total = 100;
|
|
this.handle = 0;
|
|
}
|
|
|
|
handled(num:number) {
|
|
this.handle = this.handle + num;
|
|
}
|
|
|
|
totalNum(num:number) {
|
|
this.total = num ;
|
|
}
|
|
|
|
getTotal():number {
|
|
return this.total;
|
|
}
|
|
|
|
getHandle():number {
|
|
return this.handle;
|
|
}
|
|
}
|