1 package org
.asamk
.signal
.manager
.actions
;
3 import org
.asamk
.signal
.manager
.helper
.Context
;
4 import org
.asamk
.signal
.manager
.storage
.recipients
.RecipientId
;
6 public class RetrieveProfileAction
implements HandleAction
{
8 private final RecipientId recipientId
;
10 public RetrieveProfileAction(final RecipientId recipientId
) {
11 this.recipientId
= recipientId
;
15 public void execute(Context context
) throws Throwable
{
16 context
.getProfileHelper().refreshRecipientProfile(recipientId
);
20 public boolean equals(final Object o
) {
21 if (this == o
) return true;
22 if (o
== null || getClass() != o
.getClass()) return false;
24 final RetrieveProfileAction that
= (RetrieveProfileAction
) o
;
26 return recipientId
.equals(that
.recipientId
);
30 public int hashCode() {
31 return recipientId
.hashCode();