60 lines
1.6 KiB
Java
60 lines
1.6 KiB
Java
|
package com.discord.api.thread;
|
||
|
|
||
|
import c.d.b.a.a;
|
||
|
import com.discord.api.channel.Channel;
|
||
|
import d0.z.d.m;
|
||
|
import java.util.List;
|
||
|
/* compiled from: ThreadListing.kt */
|
||
|
public final class ThreadListing {
|
||
|
private final boolean hasMore;
|
||
|
private final List<ThreadMember> members;
|
||
|
private final List<Channel> threads;
|
||
|
|
||
|
public final boolean a() {
|
||
|
return this.hasMore;
|
||
|
}
|
||
|
|
||
|
public final List<Channel> b() {
|
||
|
return this.threads;
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object obj) {
|
||
|
if (this == obj) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof ThreadListing)) {
|
||
|
return false;
|
||
|
}
|
||
|
ThreadListing threadListing = (ThreadListing) obj;
|
||
|
return m.areEqual(this.threads, threadListing.threads) && this.hasMore == threadListing.hasMore && m.areEqual(this.members, threadListing.members);
|
||
|
}
|
||
|
|
||
|
public int hashCode() {
|
||
|
List<Channel> list = this.threads;
|
||
|
int i = 0;
|
||
|
int hashCode = (list != null ? list.hashCode() : 0) * 31;
|
||
|
boolean z2 = this.hasMore;
|
||
|
if (z2) {
|
||
|
z2 = true;
|
||
|
}
|
||
|
int i2 = z2 ? 1 : 0;
|
||
|
int i3 = z2 ? 1 : 0;
|
||
|
int i4 = z2 ? 1 : 0;
|
||
|
int i5 = (hashCode + i2) * 31;
|
||
|
List<ThreadMember> list2 = this.members;
|
||
|
if (list2 != null) {
|
||
|
i = list2.hashCode();
|
||
|
}
|
||
|
return i5 + i;
|
||
|
}
|
||
|
|
||
|
public String toString() {
|
||
|
StringBuilder L = a.L("ThreadListing(threads=");
|
||
|
L.append(this.threads);
|
||
|
L.append(", hasMore=");
|
||
|
L.append(this.hasMore);
|
||
|
L.append(", members=");
|
||
|
return a.E(L, this.members, ")");
|
||
|
}
|
||
|
}
|