@@ -10,43 +10,116 @@ interface IApiCallManager {
10
10
11
11
fun addUserEmailAddress (email : String ): Single <GenericResponseClass <AddEmailResponse ?, ApiErrorResponse ?>>
12
12
fun checkConnectivityAndIpAddress (): Single <GenericResponseClass <GetMyIpResponse ?, ApiErrorResponse ?>>
13
- fun claimAccount (username : String , password : String , email : String , voucherCode : String? ): Single <GenericResponseClass <ClaimAccountResponse ?, ApiErrorResponse ?>>
13
+ fun claimAccount (
14
+ username : String ,
15
+ password : String ,
16
+ email : String ,
17
+ voucherCode : String?
18
+ ): Single <GenericResponseClass <ClaimAccountResponse ?, ApiErrorResponse ?>>
19
+
14
20
fun getBillingPlans (promo : String? ): Single <GenericResponseClass <BillingPlanResponse ?, ApiErrorResponse ?>>
15
21
fun getNotifications (pcpID : String? ): Single <GenericResponseClass <NewsFeedNotification ?, ApiErrorResponse ?>>
16
22
fun getPortMap (): Single <GenericResponseClass <PortMapResponse ?, ApiErrorResponse ?>>
17
- fun getReg (): Single <GenericResponseClass <RegToken ?, ApiErrorResponse ?>>
18
23
fun getServerConfig (): Single <GenericResponseClass <String ?, ApiErrorResponse ?>>
19
24
fun getServerCredentials (extraParams : Map <String , String >? = null): Single <GenericResponseClass <ServerCredentialsResponse ?, ApiErrorResponse ?>>
20
25
fun getServerCredentialsForIKev2 (extraParams : Map <String , String >? = null): Single <GenericResponseClass <ServerCredentialsResponse ?, ApiErrorResponse ?>>
21
- fun getServerList (isPro : Boolean , locHash : String , alcList : Array <String >, overriddenCountryCode : String? ): Single <GenericResponseClass <String ?, ApiErrorResponse ?>>
26
+ fun getServerList (
27
+ isPro : Boolean ,
28
+ locHash : String ,
29
+ alcList : Array <String >,
30
+ overriddenCountryCode : String?
31
+ ): Single <GenericResponseClass <String ?, ApiErrorResponse ?>>
32
+
22
33
fun getSessionGeneric (firebaseToken : String? ): Single <GenericResponseClass <UserSessionResponse ?, ApiErrorResponse ?>>
23
34
fun getStaticIpList (deviceID : String? ): Single <GenericResponseClass <StaticIPResponse ?, ApiErrorResponse ?>>
24
- fun logUserIn (username : String , password : String , twoFa : String? , secureToken : String? , captchaSolution : String? , captchaTrailX : FloatArray , captchaTrailY : FloatArray ): Single <GenericResponseClass <UserLoginResponse ?, ApiErrorResponse ?>>
35
+ fun logUserIn (
36
+ username : String ,
37
+ password : String ,
38
+ twoFa : String? ,
39
+ secureToken : String? ,
40
+ captchaSolution : String? ,
41
+ captchaTrailX : FloatArray ,
42
+ captchaTrailY : FloatArray
43
+ ): Single <GenericResponseClass <UserLoginResponse ?, ApiErrorResponse ?>>
44
+
25
45
fun getWebSession (): Single <GenericResponseClass <WebSession ?, ApiErrorResponse ?>>
26
46
fun recordAppInstall (): Single <GenericResponseClass <String ?, ApiErrorResponse ?>>
27
47
fun resendUserEmailAddress (extraParams : Map <String , String >? = null): Single <GenericResponseClass <AddEmailResponse ?, ApiErrorResponse ?>>
28
- fun sendTicket (supportEmail : String , supportName : String , supportSubject : String , supportMessage : String , supportCategory : String , type : String , channel : String ): Single <GenericResponseClass <TicketResponse ?, ApiErrorResponse ?>>
29
- fun signUserIn (username : String , password : String , referringUsername : String? , email : String? , voucherCode : String? , secureToken : String? , captchaSolution : String? , captchaTrailX : FloatArray , captchaTrailY : FloatArray ): Single <GenericResponseClass <UserRegistrationResponse ?, ApiErrorResponse ?>>
48
+ fun sendTicket (
49
+ supportEmail : String ,
50
+ supportName : String ,
51
+ supportSubject : String ,
52
+ supportMessage : String ,
53
+ supportCategory : String ,
54
+ type : String ,
55
+ channel : String
56
+ ): Single <GenericResponseClass <TicketResponse ?, ApiErrorResponse ?>>
57
+
58
+ fun signUserIn (
59
+ username : String ,
60
+ password : String ,
61
+ referringUsername : String? ,
62
+ email : String? ,
63
+ voucherCode : String? ,
64
+ secureToken : String? ,
65
+ captchaSolution : String? ,
66
+ captchaTrailX : FloatArray ,
67
+ captchaTrailY : FloatArray
68
+ ): Single <GenericResponseClass <UserRegistrationResponse ?, ApiErrorResponse ?>>
69
+
30
70
fun claimVoucherCode (voucherCode : String ): Single <GenericResponseClass <ClaimVoucherCodeResponse ?, ApiErrorResponse ?>>
31
71
fun signUpUsingToken (token : String ): Single <GenericResponseClass <UserRegistrationResponse ?, ApiErrorResponse ?>>
32
- fun verifyPurchaseReceipt (purchaseToken : String , gpPackageName : String , gpProductId : String , type : String , amazonUserId : String ): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
72
+ fun verifyPurchaseReceipt (
73
+ purchaseToken : String ,
74
+ gpPackageName : String ,
75
+ gpProductId : String ,
76
+ type : String ,
77
+ amazonUserId : String
78
+ ): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
79
+
33
80
fun verifyExpressLoginCode (loginCode : String ): Single <GenericResponseClass <VerifyExpressLoginResponse ?, ApiErrorResponse ?>>
34
81
fun generateXPressLoginCode (): Single <GenericResponseClass <XPressLoginCodeResponse ?, ApiErrorResponse ?>>
35
- fun verifyXPressLoginCode (loginCode : String , signature : String ): Single <GenericResponseClass <XPressLoginVerifyResponse ?, ApiErrorResponse ?>>
36
- fun postDebugLog (username : String , log : String ): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
82
+ fun verifyXPressLoginCode (
83
+ loginCode : String ,
84
+ signature : String
85
+ ): Single <GenericResponseClass <XPressLoginVerifyResponse ?, ApiErrorResponse ?>>
86
+
87
+ fun postDebugLog (
88
+ username : String ,
89
+ log : String
90
+ ): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
91
+
37
92
fun postPromoPaymentConfirmation (pcpID : String ): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
38
93
fun getRobertFilters (): Single <GenericResponseClass <RobertFilterResponse ?, ApiErrorResponse ?>>
39
- fun updateRobertSettings (id : String , status : Int ): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
94
+ fun updateRobertSettings (
95
+ id : String ,
96
+ status : Int
97
+ ): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
98
+
40
99
fun syncRobert (): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
41
100
fun deleteSession (): Single <GenericResponseClass <GenericSuccess ?, ApiErrorResponse ?>>
42
- fun wgInit (clientPublicKey : String , deleteOldestKey : Boolean ): Single <GenericResponseClass <WgInitResponse ?, ApiErrorResponse ?>>
43
- fun wgConnect (clientPublicKey : String , hostname : String , deviceId : String ): Single <GenericResponseClass <WgConnectResponse ?, ApiErrorResponse ?>>
101
+ fun wgInit (
102
+ clientPublicKey : String ,
103
+ deleteOldestKey : Boolean
104
+ ): Single <GenericResponseClass <WgInitResponse ?, ApiErrorResponse ?>>
105
+
106
+ fun wgConnect (
107
+ clientPublicKey : String ,
108
+ hostname : String ,
109
+ deviceId : String
110
+ ): Single <GenericResponseClass <WgConnectResponse ?, ApiErrorResponse ?>>
111
+
44
112
fun sendDecoyTraffic (
45
113
url : String ,
46
114
data : String ,
47
115
sizeToReceive : String?
48
116
): Single <GenericResponseClass <String ?, ApiErrorResponse ?>>
49
- fun sso (provider : String , token : String ): Single <GenericResponseClass <SsoResponse ?, ApiErrorResponse ?>>
117
+
118
+ fun sso (
119
+ provider : String ,
120
+ token : String
121
+ ): Single <GenericResponseClass <SsoResponse ?, ApiErrorResponse ?>>
122
+
50
123
fun authTokenSignup (useAsciiCaptcha : Boolean ): Single <GenericResponseClass <AuthToken ?, ApiErrorResponse ?>>
51
124
fun authTokenLogin (useAsciiCaptcha : Boolean ): Single <GenericResponseClass <AuthToken ?, ApiErrorResponse ?>>
52
125
}
0 commit comments