]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/storage/profiles/SignalProfileEntry.java
Implement creating V2 Groups
[signal-cli] / src / main / java / org / asamk / signal / storage / profiles / SignalProfileEntry.java
index 0423e12ed12f09f9dc327979e867f4361c3a80d2..e6acf30da2009e000e16a99f5a906d096f1ef56e 100644 (file)
@@ -1,19 +1,39 @@
 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() {
@@ -27,4 +47,16 @@ public class SignalProfileEntry {
     public SignalProfile getProfile() {
         return profile;
     }
+
+    public ProfileKeyCredential getProfileKeyCredential() {
+        return profileKeyCredential;
+    }
+
+    public boolean isRequestPending() {
+        return requestPending;
+    }
+
+    public void setRequestPending(final boolean requestPending) {
+        this.requestPending = requestPending;
+    }
 }