Add a "change number" device/account capability

This commit is contained in:
Jon Chambers
2021-09-02 13:03:35 -04:00
committed by Jon Chambers
parent 18a6df34bd
commit 92f035bc2a
14 changed files with 121 additions and 28 deletions

View File

@@ -15,7 +15,8 @@ public class UserCapabilities {
account.isGroupsV2Supported(),
account.isGv1MigrationSupported(),
account.isSenderKeySupported(),
account.isAnnouncementGroupSupported());
account.isAnnouncementGroupSupported(),
account.isChangeNumberSupported());
}
@JsonProperty
@@ -30,13 +31,22 @@ public class UserCapabilities {
@JsonProperty
private boolean announcementGroup;
@JsonProperty
private boolean changeNumber;
public UserCapabilities() {}
public UserCapabilities(boolean gv2, boolean gv1Migration, final boolean senderKey, final boolean announcementGroup) {
public UserCapabilities(final boolean gv2,
boolean gv1Migration,
final boolean senderKey,
final boolean announcementGroup,
final boolean changeNumber) {
this.gv2 = gv2;
this.gv1Migration = gv1Migration;
this.senderKey = senderKey;
this.announcementGroup = announcementGroup;
this.changeNumber = changeNumber;
}
public boolean isGv2() {
@@ -54,4 +64,8 @@ public class UserCapabilities {
public boolean isAnnouncementGroup() {
return announcementGroup;
}
public boolean isChangeNumber() {
return changeNumber;
}
}