Add sender key capability

This commit is contained in:
Ehren Kret
2021-05-12 18:08:22 -05:00
parent e9a3d52d7f
commit bfd2c32d4e
11 changed files with 79 additions and 18 deletions

View File

@@ -14,11 +14,15 @@ public class UserCapabilities {
@JsonProperty("gv1-migration")
private boolean gv1Migration;
@JsonProperty
private boolean senderKey;
public UserCapabilities() {}
public UserCapabilities(boolean gv2, boolean gv1Migration) {
public UserCapabilities(boolean gv2, boolean gv1Migration, final boolean senderKey) {
this.gv2 = gv2;
this.gv1Migration = gv1Migration;
this.senderKey = senderKey;
}
public boolean isGv2() {
@@ -28,4 +32,8 @@ public class UserCapabilities {
public boolean isGv1Migration() {
return gv1Migration;
}
public boolean isSenderKey() {
return senderKey;
}
}