-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconfig.ts
More file actions
43 lines (38 loc) · 1.02 KB
/
config.ts
File metadata and controls
43 lines (38 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
export class TakeawayConfig {
language: string;
url: string;
password: string;
version: string;
systemVersion: string;
appVersion: string;
appName: string;
constructor({
language = 'nl',
url = 'https://nl.citymeal.com/android/android.php',
password = '4ndro1d',
version = '5.7',
systemVersion = '29',
appVersion = '9999.9999.9999',
appName = 'Takeaway.com'
} = {}) {
this.language = language;
this.url = url;
this.password = password;
this.version = version;
this.systemVersion = systemVersion;
this.appVersion = appVersion;
this.appName = appName;
}
getLanguage() {
return this.language;
}
getUrl() {
return this.url;
}
getPassword() {
return this.password;
}
getDefaultQuery() {
return `&version=${this.version}&systemversion=${this.systemVersion};${this.appVersion}&appname=${this.appName}&language=${this.language}`;
}
}