package org.asamk.signal.storage.profiles;
import org.signal.zkgroup.profiles.ProfileKey;
+import org.signal.zkgroup.profiles.ProfileKeyCredential;
+import org.whispersystems.signalservice.api.push.SignalServiceAddress;
public class SignalProfileEntry {
- private ProfileKey profileKey;
+ private final SignalServiceAddress serviceAddress;
- private long lastUpdateTimestamp;
+ private final ProfileKey profileKey;
- private SignalProfile profile;
+ private final long lastUpdateTimestamp;
- public SignalProfileEntry(final ProfileKey profileKey, final long lastUpdateTimestamp, final SignalProfile profile) {
+ private final SignalProfile profile;
+
+ private final ProfileKeyCredential profileKeyCredential;
+
+ private boolean requestPending;
+
+ public SignalProfileEntry(
+ final SignalServiceAddress serviceAddress,
+ final ProfileKey profileKey,
+ final long lastUpdateTimestamp,
+ final SignalProfile profile,
+ final ProfileKeyCredential profileKeyCredential
+ ) {
+ this.serviceAddress = serviceAddress;
this.profileKey = profileKey;
this.lastUpdateTimestamp = lastUpdateTimestamp;
this.profile = profile;
+ this.profileKeyCredential = profileKeyCredential;
+ }
+
+ public SignalServiceAddress getServiceAddress() {
+ return serviceAddress;
}
public ProfileKey getProfileKey() {
public SignalProfile getProfile() {
return profile;
}
+
+ public ProfileKeyCredential getProfileKeyCredential() {
+ return profileKeyCredential;
+ }
+
+ public boolean isRequestPending() {
+ return requestPending;
+ }
+
+ public void setRequestPending(final boolean requestPending) {
+ this.requestPending = requestPending;
+ }
}