54 lines
1.5 KiB
Java
54 lines
1.5 KiB
Java
package com.discord.api.message.activity;
|
|
|
|
import c.d.b.a.a;
|
|
import d0.z.d.m;
|
|
/* compiled from: MessageActivity.kt */
|
|
public final class MessageActivity {
|
|
private final String partyId;
|
|
private final MessageActivityType type;
|
|
|
|
public MessageActivity(MessageActivityType messageActivityType, String str) {
|
|
m.checkNotNullParameter(messageActivityType, "type");
|
|
m.checkNotNullParameter(str, "partyId");
|
|
this.type = messageActivityType;
|
|
this.partyId = str;
|
|
}
|
|
|
|
public final String a() {
|
|
return this.partyId;
|
|
}
|
|
|
|
public final MessageActivityType b() {
|
|
return this.type;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof MessageActivity)) {
|
|
return false;
|
|
}
|
|
MessageActivity messageActivity = (MessageActivity) obj;
|
|
return m.areEqual(this.type, messageActivity.type) && m.areEqual(this.partyId, messageActivity.partyId);
|
|
}
|
|
|
|
public int hashCode() {
|
|
MessageActivityType messageActivityType = this.type;
|
|
int i = 0;
|
|
int hashCode = (messageActivityType != null ? messageActivityType.hashCode() : 0) * 31;
|
|
String str = this.partyId;
|
|
if (str != null) {
|
|
i = str.hashCode();
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder L = a.L("MessageActivity(type=");
|
|
L.append(this.type);
|
|
L.append(", partyId=");
|
|
return a.D(L, this.partyId, ")");
|
|
}
|
|
}
|