}
}
var lastUpdateTimestamp = entry.get("lastUpdateTimestamp").asLong();
- var profile = jsonProcessor.treeToValue(entry.get("profile"), SignalProfile.class);
+ var profile = jsonProcessor.treeToValue(entry.get("profile"), LegacySignalProfile.class);
profileEntries.add(new LegacySignalProfileEntry(address,
profileKey,
lastUpdateTimestamp,
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-public class SignalProfile {
+public class LegacySignalProfile {
@JsonProperty
@JsonIgnore
@JsonProperty
private final Capabilities capabilities;
- public SignalProfile(
+ public LegacySignalProfile(
@JsonProperty("name") final String name,
@JsonProperty("about") final String about,
@JsonProperty("aboutEmoji") final String aboutEmoji,
@JsonIgnore
public boolean uuid;
+ @JsonIgnore
+ public boolean gv2;
+
@JsonProperty
public boolean storage;
private final long lastUpdateTimestamp;
- private final SignalProfile profile;
+ private final LegacySignalProfile profile;
private final ProfileKeyCredential profileKeyCredential;
final RecipientAddress address,
final ProfileKey profileKey,
final long lastUpdateTimestamp,
- final SignalProfile profile,
+ final LegacySignalProfile profile,
final ProfileKeyCredential profileKeyCredential
) {
this.address = address;
return lastUpdateTimestamp;
}
- public SignalProfile getProfile() {
+ public LegacySignalProfile getProfile() {
return profile;
}