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 import java
.util
.Objects
;
8 public class SendProfileKeyAction
implements HandleAction
{
10 private final RecipientId recipientId
;
12 public SendProfileKeyAction(final RecipientId recipientId
) {
13 this.recipientId
= recipientId
;
17 public void execute(Context context
) throws Throwable
{
18 context
.getSendHelper().sendProfileKey(recipientId
);
22 public boolean equals(final Object o
) {
23 if (this == o
) return true;
24 if (o
== null || getClass() != o
.getClass()) return false;
25 final SendProfileKeyAction that
= (SendProfileKeyAction
) o
;
26 return recipientId
.equals(that
.recipientId
);
30 public int hashCode() {
31 return Objects
.hash(recipientId
);