Skip to content

Commit

Permalink
feat(api): update AddWireGuardPublicKeyRequestBody.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed May 27, 2024
1 parent 21d9a10 commit c1b8407
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public class SessionNewRequestBody {
@SerializedName("kem_public_key1")
@Expose
private String kemPublicKey;
@SerializedName("kem_library_version")
@Expose
private String kemLibraryVersion;
@SerializedName("app_name")
@Expose
private String appName;
Expand All @@ -56,6 +59,7 @@ public SessionNewRequestBody(String username, String wgPublicKey, String kemPubl
this.username = username;
this.wgPublicKey = wgPublicKey;
this.kemPublicKey = kemPublicKey;
this.kemLibraryVersion = "0.10.0";
this.appName = "IVPN for Android";
this.force = force;
}
Expand All @@ -64,6 +68,7 @@ public SessionNewRequestBody(String username, String wgPublicKey, String kemPubl
this.username = username;
this.wgPublicKey = wgPublicKey;
this.kemPublicKey = kemPublicKey;
this.kemLibraryVersion = "0.10.0";
this.appName = "IVPN for Android";
this.force = force;
this.tfaToken = tfaToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,23 @@ public class AddWireGuardPublicKeyRequestBody {
@SerializedName("kem_public_key1")
@Expose
private String kemPublicKey;
@SerializedName("kem_library_version")
@Expose
private String kemLibraryVersion;

public AddWireGuardPublicKeyRequestBody(String sessionToken, String publicKey, String connectedPublicKey, String kemPublicKey) {
this.sessionToken = sessionToken;
this.publicKey = publicKey;
this.connectedPublicKey = connectedPublicKey;
this.kemPublicKey = kemPublicKey;
this.kemLibraryVersion = "0.10.0";
}

public AddWireGuardPublicKeyRequestBody(String sessionToken, String publicKey, String kemPublicKey) {
this.sessionToken = sessionToken;
this.publicKey = publicKey;
this.kemPublicKey = kemPublicKey;
this.kemLibraryVersion = "0.10.0";
}

public String getSessionToken() {
Expand Down

0 comments on commit c1b8407

Please sign in to comment.