public boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
- final SendReceiptAction that = (SendReceiptAction) o;
+ final var that = (SendReceiptAction) o;
return timestamp == that.timestamp && address.equals(that.address);
}
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
- final SendGroupInfoRequestAction that = (SendGroupInfoRequestAction) o;
+ final var that = (SendGroupInfoRequestAction) o;
if (!address.equals(that.address)) return false;
return groupId.equals(that.groupId);
@Override
public int hashCode() {
- int result = address.hashCode();
+ var result = address.hashCode();
result = 31 * result + groupId.hashCode();
return result;
}
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
- final SendGroupInfoAction that = (SendGroupInfoAction) o;
+ final var that = (SendGroupInfoAction) o;
if (!address.equals(that.address)) return false;
return groupId.equals(that.groupId);
@Override
public int hashCode() {
- int result = address.hashCode();
+ var result = address.hashCode();
result = 31 * result + groupId.hashCode();
return result;
}
}
+
+class RetrieveProfileAction implements HandleAction {
+
+ private final SignalServiceAddress address;
+
+ public RetrieveProfileAction(final SignalServiceAddress address) {
+ this.address = address;
+ }
+
+ @Override
+ public void execute(Manager m) throws Throwable {
+ m.getRecipientProfile(address, true);
+ }
+
+ @Override
+ public boolean equals(final Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+
+ final RetrieveProfileAction that = (RetrieveProfileAction) o;
+
+ return address.equals(that.address);
+ }
+
+ @Override
+ public int hashCode() {
+ return address.hashCode();
+ }
+}