This commit is contained in:
@@ -3,6 +3,8 @@ export namespace config {
|
||||
export class Config {
|
||||
url: string;
|
||||
token: string;
|
||||
has_video_token: string;
|
||||
no_video_token: string;
|
||||
thread_count: number;
|
||||
handle_file_count: number;
|
||||
is_run_on_start: boolean;
|
||||
@@ -17,6 +19,8 @@ export namespace config {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.url = source["url"];
|
||||
this.token = source["token"];
|
||||
this.has_video_token = source["has_video_token"];
|
||||
this.no_video_token = source["no_video_token"];
|
||||
this.thread_count = source["thread_count"];
|
||||
this.handle_file_count = source["handle_file_count"];
|
||||
this.is_run_on_start = source["is_run_on_start"];
|
||||
|
||||
Reference in New Issue
Block a user