]> nmode's Git Repositories - signal-cli/blob - 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
1 package org.asamk.signal.storage.profiles;
2
3 import org.signal.zkgroup.profiles.ProfileKey;
4 import org.signal.zkgroup.profiles.ProfileKeyCredential;
5 import org.whispersystems.signalservice.api.push.SignalServiceAddress;
6
7 public class SignalProfileEntry {
8
9 private final SignalServiceAddress serviceAddress;
10
11 private final ProfileKey profileKey;
12
13 private final long lastUpdateTimestamp;
14
15 private final SignalProfile profile;
16
17 private final ProfileKeyCredential profileKeyCredential;
18
19 private boolean requestPending;
20
21 public SignalProfileEntry(
22 final SignalServiceAddress serviceAddress,
23 final ProfileKey profileKey,
24 final long lastUpdateTimestamp,
25 final SignalProfile profile,
26 final ProfileKeyCredential profileKeyCredential
27 ) {
28 this.serviceAddress = serviceAddress;
29 this.profileKey = profileKey;
30 this.lastUpdateTimestamp = lastUpdateTimestamp;
31 this.profile = profile;
32 this.profileKeyCredential = profileKeyCredential;
33 }
34
35 public SignalServiceAddress getServiceAddress() {
36 return serviceAddress;
37 }
38
39 public ProfileKey getProfileKey() {
40 return profileKey;
41 }
42
43 public long getLastUpdateTimestamp() {
44 return lastUpdateTimestamp;
45 }
46
47 public SignalProfile getProfile() {
48 return profile;
49 }
50
51 public ProfileKeyCredential getProfileKeyCredential() {
52 return profileKeyCredential;
53 }
54
55 public boolean isRequestPending() {
56 return requestPending;
57 }
58
59 public void setRequestPending(final boolean requestPending) {
60 this.requestPending = requestPending;
61 }
62 }