blob: 9f85c4a04807e5dc247f4e6b53a8e9b7fa5adbce (
plain)
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
|
package se.leap.bitmaskclient.pluggableTransports.models;
import androidx.annotation.NonNull;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
public class ObfsvpnConfig {
final String proxyAddr;
final HoppingConfig hoppingConfig;
final KcpConfig kcpConfig;
final String remoteIp;
final String remotePort;
final String obfs4Cert;
public ObfsvpnConfig(String proxyAddress, HoppingConfig hoppingConfig, KcpConfig kcpConfig, String remoteIP, String remotePort, String obfsv4Cert) {
this.proxyAddr = proxyAddress;
this.hoppingConfig = hoppingConfig;
this.kcpConfig = kcpConfig;
this.remoteIp = remoteIP;
this.remotePort = remotePort;
this.obfs4Cert = obfsv4Cert;
}
@NonNull
@Override
public String toString() {
Gson gson = new GsonBuilder()
.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
.create();
return gson.toJson(this);
}
}
|