mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 10:51:27 +01:00
Add payment activation capability.
This commit is contained in:
committed by
Greyson Parrelli
parent
96b2051400
commit
a13599ae2a
@@ -1024,6 +1024,10 @@ public class Recipient {
|
||||
return capabilities.getPnpCapability();
|
||||
}
|
||||
|
||||
public @NonNull Capability getPaymentActivationCapability() {
|
||||
return capabilities.getPaymentActivation();
|
||||
}
|
||||
|
||||
public @Nullable byte[] getProfileKey() {
|
||||
return profileKey;
|
||||
}
|
||||
@@ -1213,6 +1217,10 @@ public class Recipient {
|
||||
return value;
|
||||
}
|
||||
|
||||
public boolean isSupported() {
|
||||
return this == SUPPORTED;
|
||||
}
|
||||
|
||||
public static Capability deserialize(int value) {
|
||||
switch (value) {
|
||||
case 0: return UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user