]> nmode's Git Repositories - signal-cli/blob - src/main/java/org/asamk/signal/storage/profiles/SignalProfileEntry.java
Refactor ProfileStore to handle name/uuid addresses correctly
[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.whispersystems.signalservice.api.push.SignalServiceAddress;
5
6 public class SignalProfileEntry {
7
8 private final SignalServiceAddress serviceAddress;
9
10 private final ProfileKey profileKey;
11
12 private final long lastUpdateTimestamp;
13
14 private final SignalProfile profile;
15
16 public SignalProfileEntry(final SignalServiceAddress serviceAddress, final ProfileKey profileKey, final long lastUpdateTimestamp, final SignalProfile profile) {
17 this.serviceAddress = serviceAddress;
18 this.profileKey = profileKey;
19 this.lastUpdateTimestamp = lastUpdateTimestamp;
20 this.profile = profile;
21 }
22
23 public SignalServiceAddress getServiceAddress() {
24 return serviceAddress;
25 }
26
27 public ProfileKey getProfileKey() {
28 return profileKey;
29 }
30
31 public long getLastUpdateTimestamp() {
32 return lastUpdateTimestamp;
33 }
34
35 public SignalProfile getProfile() {
36 return profile;
37 }
38 }