Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRunConfig.java
More file actions
Latest commit
53 lines (39 loc) · 1.11 KB
/
Copy pathRunConfig.java
File metadata and controls
53 lines (39 loc) · 1.11 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
44
45
46
47
48
49
50
51
52
53
packageio.gate.apidemo;
importjava.net.URI;
importjava.net.URISyntaxException;
publicclassRunConfig {
privateStringapiKey;
privateStringapiSecret;
privateStringhostUsed;
privatebooleanuseTest;
publicRunConfig() {
this.useTest = false;
}
publicRunConfig(StringapiKey, StringapiSecret, StringhostUsed) throwsURISyntaxException {
this.apiKey = apiKey;
this.apiSecret = apiSecret;
this.setHostUsed(hostUsed);
}
publicStringgetApiKey() {
returnapiKey;
}
publicvoidsetApiKey(StringapiKey) {
this.apiKey = apiKey;
}
publicStringgetApiSecret() {
returnapiSecret;
}
publicvoidsetApiSecret(StringapiSecret) {
this.apiSecret = apiSecret;
}
publicStringgetHostUsed() {
returnhostUsed;
}
publicvoidsetHostUsed(StringhostUsed) throwsURISyntaxException {
this.hostUsed = hostUsed;
this.useTest = "fx-api-testnet.gateio.ws".equals(newURI(hostUsed).getHost());
}
publicbooleanisUseTest() {
returnuseTest;
}
}