1 package org
.asamk
.signal
.storage
.profiles
;
3 import org
.signal
.zkgroup
.profiles
.ProfileKey
;
4 import org
.signal
.zkgroup
.profiles
.ProfileKeyCredential
;
5 import org
.whispersystems
.signalservice
.api
.push
.SignalServiceAddress
;
7 public class SignalProfileEntry
{
9 private final SignalServiceAddress serviceAddress
;
11 private final ProfileKey profileKey
;
13 private final long lastUpdateTimestamp
;
15 private final SignalProfile profile
;
17 private final ProfileKeyCredential profileKeyCredential
;
19 private boolean requestPending
;
21 public SignalProfileEntry(
22 final SignalServiceAddress serviceAddress
,
23 final ProfileKey profileKey
,
24 final long lastUpdateTimestamp
,
25 final SignalProfile profile
,
26 final ProfileKeyCredential profileKeyCredential
28 this.serviceAddress
= serviceAddress
;
29 this.profileKey
= profileKey
;
30 this.lastUpdateTimestamp
= lastUpdateTimestamp
;
31 this.profile
= profile
;
32 this.profileKeyCredential
= profileKeyCredential
;
35 public SignalServiceAddress
getServiceAddress() {
36 return serviceAddress
;
39 public ProfileKey
getProfileKey() {
43 public long getLastUpdateTimestamp() {
44 return lastUpdateTimestamp
;
47 public SignalProfile
getProfile() {
51 public ProfileKeyCredential
getProfileKeyCredential() {
52 return profileKeyCredential
;
55 public boolean isRequestPending() {
56 return requestPending
;
59 public void setRequestPending(final boolean requestPending
) {
60 this.requestPending
= requestPending
;