"queryAllDeclaredConstructors":true,
"methods":[{"name":"<init>","parameterTypes":[] }]
},
+{
+ "name":"org.whispersystems.signalservice.internal.push.GetUsernameFromLinkResponseBody",
+ "allDeclaredFields":true,
+ "queryAllDeclaredMethods":true,
+ "queryAllDeclaredConstructors":true,
+ "methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }, {"name":"<init>","parameterTypes":["java.lang.String","int","kotlin.jvm.internal.DefaultConstructorMarker"] }]
+},
{
"name":"org.whispersystems.signalservice.internal.push.GroupMismatchedDevices",
"allDeclaredFields":true,
public RecipientAddress {
uuid = uuid.isPresent() && uuid.get().equals(UNKNOWN_UUID) ? Optional.empty() : uuid;
if (uuid.isEmpty() && number.isEmpty() && username.isEmpty()) {
- throw new AssertionError("Must have either a UUID or E164 number!");
+ throw new AssertionError("Must have either a UUID, username or E164 number!");
}
}
if (pni.isPresent() && pni.get().isUnknown()) {
pni = Optional.empty();
}
- if (aci.isEmpty() && pni.isEmpty() && number.isEmpty()) {
- throw new AssertionError("Must have either a ServiceId or E164 number!");
+ if (aci.isEmpty() && pni.isEmpty() && number.isEmpty() && username.isEmpty()) {
+ throw new AssertionError("Must have either a ServiceId, username or E164 number!");
}
}