]> nmode's Git Repositories - signal-cli/blob - src/main/java/org/asamk/signal/storage/profiles/SignalProfileEntry.java
Cache profiles for 24h before retrieving them again
[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
5 public class SignalProfileEntry {
6
7 private ProfileKey profileKey;
8
9 private long lastUpdateTimestamp;
10
11 private SignalProfile profile;
12
13 public SignalProfileEntry(final ProfileKey profileKey, final long lastUpdateTimestamp, final SignalProfile profile) {
14 this.profileKey = profileKey;
15 this.lastUpdateTimestamp = lastUpdateTimestamp;
16 this.profile = profile;
17 }
18
19 public ProfileKey getProfileKey() {
20 return profileKey;
21 }
22
23 public long getLastUpdateTimestamp() {
24 return lastUpdateTimestamp;
25 }
26
27 public SignalProfile getProfile() {
28 return profile;
29 }
30 }