discord-jadx/app/src/main/java/com/discord/api/guildmember/GuildMember.java

204 lines
7.7 KiB
Java

package com.discord.api.guildmember;
import c.d.b.a.a;
import com.discord.api.presence.Presence;
import com.discord.api.user.User;
import com.discord.api.utcdatetime.UtcDateTime;
import d0.z.d.m;
import java.util.List;
import java.util.Objects;
/* compiled from: GuildMember.kt */
public final class GuildMember {
private final String avatar;
private final String banner;
private final String bio;
private final UtcDateTime communicationDisabledUntil;
private final long guildId;
private final UtcDateTime joinedAt;
private final String nick;
private final boolean pending;
private final String premiumSince;
private final Presence presence;
private final List<Long> roles;
private final User user;
private final Long userId;
public GuildMember(long j, User user, List<Long> list, String str, String str2, UtcDateTime utcDateTime, boolean z2, Presence presence, Long l, String str3, String str4, String str5, UtcDateTime utcDateTime2) {
m.checkNotNullParameter(user, "user");
m.checkNotNullParameter(list, "roles");
this.guildId = j;
this.user = user;
this.roles = list;
this.nick = str;
this.premiumSince = str2;
this.joinedAt = utcDateTime;
this.pending = z2;
this.presence = presence;
this.userId = l;
this.avatar = str3;
this.bio = str4;
this.banner = str5;
this.communicationDisabledUntil = utcDateTime2;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ GuildMember(long j, User user, List list, String str, String str2, UtcDateTime utcDateTime, boolean z2, Presence presence, Long l, String str3, String str4, String str5, UtcDateTime utcDateTime2, int i) {
this(j, user, list, str, str2, utcDateTime, z2, null, l, str3, null, null, (i & 4096) != 0 ? null : utcDateTime2);
int i2 = i & 1024;
int i3 = i & 2048;
}
public static GuildMember a(GuildMember guildMember, long j, User user, List list, String str, String str2, UtcDateTime utcDateTime, boolean z2, Presence presence, Long l, String str3, String str4, String str5, UtcDateTime utcDateTime2, int i) {
long j2 = (i & 1) != 0 ? guildMember.guildId : j;
User user2 = (i & 2) != 0 ? guildMember.user : user;
List<Long> list2 = (i & 4) != 0 ? guildMember.roles : null;
String str6 = (i & 8) != 0 ? guildMember.nick : null;
String str7 = (i & 16) != 0 ? guildMember.premiumSince : null;
UtcDateTime utcDateTime3 = (i & 32) != 0 ? guildMember.joinedAt : null;
boolean z3 = (i & 64) != 0 ? guildMember.pending : z2;
Presence presence2 = (i & 128) != 0 ? guildMember.presence : null;
Long l2 = (i & 256) != 0 ? guildMember.userId : null;
String str8 = (i & 512) != 0 ? guildMember.avatar : null;
String str9 = (i & 1024) != 0 ? guildMember.bio : str4;
String str10 = (i & 2048) != 0 ? guildMember.banner : str5;
UtcDateTime utcDateTime4 = (i & 4096) != 0 ? guildMember.communicationDisabledUntil : null;
Objects.requireNonNull(guildMember);
m.checkNotNullParameter(user2, "user");
m.checkNotNullParameter(list2, "roles");
return new GuildMember(j2, user2, list2, str6, str7, utcDateTime3, z3, presence2, l2, str8, str9, str10, utcDateTime4);
}
public final String b() {
return this.avatar;
}
public final String c() {
return this.banner;
}
public final String d() {
return this.bio;
}
public final UtcDateTime e() {
return this.communicationDisabledUntil;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof GuildMember)) {
return false;
}
GuildMember guildMember = (GuildMember) obj;
return this.guildId == guildMember.guildId && m.areEqual(this.user, guildMember.user) && m.areEqual(this.roles, guildMember.roles) && m.areEqual(this.nick, guildMember.nick) && m.areEqual(this.premiumSince, guildMember.premiumSince) && m.areEqual(this.joinedAt, guildMember.joinedAt) && this.pending == guildMember.pending && m.areEqual(this.presence, guildMember.presence) && m.areEqual(this.userId, guildMember.userId) && m.areEqual(this.avatar, guildMember.avatar) && m.areEqual(this.bio, guildMember.bio) && m.areEqual(this.banner, guildMember.banner) && m.areEqual(this.communicationDisabledUntil, guildMember.communicationDisabledUntil);
}
public final long f() {
return this.guildId;
}
public final UtcDateTime g() {
return this.joinedAt;
}
public final String h() {
return this.nick;
}
public int hashCode() {
long j = this.guildId;
int i = ((int) (j ^ (j >>> 32))) * 31;
User user = this.user;
int i2 = 0;
int hashCode = (i + (user != null ? user.hashCode() : 0)) * 31;
List<Long> list = this.roles;
int hashCode2 = (hashCode + (list != null ? list.hashCode() : 0)) * 31;
String str = this.nick;
int hashCode3 = (hashCode2 + (str != null ? str.hashCode() : 0)) * 31;
String str2 = this.premiumSince;
int hashCode4 = (hashCode3 + (str2 != null ? str2.hashCode() : 0)) * 31;
UtcDateTime utcDateTime = this.joinedAt;
int hashCode5 = (hashCode4 + (utcDateTime != null ? utcDateTime.hashCode() : 0)) * 31;
boolean z2 = this.pending;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (hashCode5 + i3) * 31;
Presence presence = this.presence;
int hashCode6 = (i6 + (presence != null ? presence.hashCode() : 0)) * 31;
Long l = this.userId;
int hashCode7 = (hashCode6 + (l != null ? l.hashCode() : 0)) * 31;
String str3 = this.avatar;
int hashCode8 = (hashCode7 + (str3 != null ? str3.hashCode() : 0)) * 31;
String str4 = this.bio;
int hashCode9 = (hashCode8 + (str4 != null ? str4.hashCode() : 0)) * 31;
String str5 = this.banner;
int hashCode10 = (hashCode9 + (str5 != null ? str5.hashCode() : 0)) * 31;
UtcDateTime utcDateTime2 = this.communicationDisabledUntil;
if (utcDateTime2 != null) {
i2 = utcDateTime2.hashCode();
}
return hashCode10 + i2;
}
public final boolean i() {
return this.pending;
}
public final String j() {
return this.premiumSince;
}
public final Presence k() {
return this.presence;
}
public final List<Long> l() {
return this.roles;
}
public final User m() {
return this.user;
}
public final Long n() {
return this.userId;
}
public String toString() {
StringBuilder R = a.R("GuildMember(guildId=");
R.append(this.guildId);
R.append(", user=");
R.append(this.user);
R.append(", roles=");
R.append(this.roles);
R.append(", nick=");
R.append(this.nick);
R.append(", premiumSince=");
R.append(this.premiumSince);
R.append(", joinedAt=");
R.append(this.joinedAt);
R.append(", pending=");
R.append(this.pending);
R.append(", presence=");
R.append(this.presence);
R.append(", userId=");
R.append(this.userId);
R.append(", avatar=");
R.append(this.avatar);
R.append(", bio=");
R.append(this.bio);
R.append(", banner=");
R.append(this.banner);
R.append(", communicationDisabledUntil=");
R.append(this.communicationDisabledUntil);
R.append(")");
return R.toString();
}
}