discord-jadx/app/src/main/java/com/discord/models/domain/ModelChannelFollowerStats.java
2021-12-17 22:59:34 +01:00

163 lines
7.2 KiB
Java

package com.discord.models.domain;
import b.d.b.a.a;
import com.discord.utilities.time.ClockFactory;
import d0.z.d.m;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: ModelChannelFollowerStats.kt */
public final class ModelChannelFollowerStats {
public static final Companion Companion = new Companion(null);
private final Integer channelsFollowing;
private final Integer guildMembers;
private final Integer guildsFollowing;
private final long lastFetched;
private final Integer subscribersGainedSinceLastPost;
private final Integer subscribersLostSinceLastPost;
private final Integer usersSeenEver;
/* compiled from: ModelChannelFollowerStats.kt */
public static final class Companion {
private Companion() {
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final ModelChannelFollowerStats fromResponse(ModelChannelFollowerStatsDto modelChannelFollowerStatsDto) {
return modelChannelFollowerStatsDto == null ? new ModelChannelFollowerStats(0, null, null, null, null, null, null, 127, null) : new ModelChannelFollowerStats(0, modelChannelFollowerStatsDto.getChannelsFollowing(), modelChannelFollowerStatsDto.getGuildMembers(), modelChannelFollowerStatsDto.getGuildsFollowing(), modelChannelFollowerStatsDto.getUsersSeenEver(), modelChannelFollowerStatsDto.getSubscribersGainedSinceLastPost(), modelChannelFollowerStatsDto.getSubscribersLostSinceLastPost(), 1, null);
}
}
public ModelChannelFollowerStats() {
this(0, null, null, null, null, null, null, 127, null);
}
public ModelChannelFollowerStats(long j, Integer num, Integer num2, Integer num3, Integer num4, Integer num5, Integer num6) {
this.lastFetched = j;
this.channelsFollowing = num;
this.guildMembers = num2;
this.guildsFollowing = num3;
this.usersSeenEver = num4;
this.subscribersGainedSinceLastPost = num5;
this.subscribersLostSinceLastPost = num6;
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ ModelChannelFollowerStats(long j, Integer num, Integer num2, Integer num3, Integer num4, Integer num5, Integer num6, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? ClockFactory.get().currentTimeMillis() : j, (i & 2) != 0 ? 0 : num, (i & 4) != 0 ? 0 : num2, (i & 8) != 0 ? 0 : num3, (i & 16) != 0 ? 0 : num4, (i & 32) != 0 ? 0 : num5, (i & 64) != 0 ? 0 : num6);
}
public static /* synthetic */ ModelChannelFollowerStats copy$default(ModelChannelFollowerStats modelChannelFollowerStats, long j, Integer num, Integer num2, Integer num3, Integer num4, Integer num5, Integer num6, int i, Object obj) {
return modelChannelFollowerStats.copy((i & 1) != 0 ? modelChannelFollowerStats.lastFetched : j, (i & 2) != 0 ? modelChannelFollowerStats.channelsFollowing : num, (i & 4) != 0 ? modelChannelFollowerStats.guildMembers : num2, (i & 8) != 0 ? modelChannelFollowerStats.guildsFollowing : num3, (i & 16) != 0 ? modelChannelFollowerStats.usersSeenEver : num4, (i & 32) != 0 ? modelChannelFollowerStats.subscribersGainedSinceLastPost : num5, (i & 64) != 0 ? modelChannelFollowerStats.subscribersLostSinceLastPost : num6);
}
public final long component1() {
return this.lastFetched;
}
public final Integer component2() {
return this.channelsFollowing;
}
public final Integer component3() {
return this.guildMembers;
}
public final Integer component4() {
return this.guildsFollowing;
}
public final Integer component5() {
return this.usersSeenEver;
}
public final Integer component6() {
return this.subscribersGainedSinceLastPost;
}
public final Integer component7() {
return this.subscribersLostSinceLastPost;
}
public final ModelChannelFollowerStats copy(long j, Integer num, Integer num2, Integer num3, Integer num4, Integer num5, Integer num6) {
return new ModelChannelFollowerStats(j, num, num2, num3, num4, num5, num6);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ModelChannelFollowerStats)) {
return false;
}
ModelChannelFollowerStats modelChannelFollowerStats = (ModelChannelFollowerStats) obj;
return this.lastFetched == modelChannelFollowerStats.lastFetched && m.areEqual(this.channelsFollowing, modelChannelFollowerStats.channelsFollowing) && m.areEqual(this.guildMembers, modelChannelFollowerStats.guildMembers) && m.areEqual(this.guildsFollowing, modelChannelFollowerStats.guildsFollowing) && m.areEqual(this.usersSeenEver, modelChannelFollowerStats.usersSeenEver) && m.areEqual(this.subscribersGainedSinceLastPost, modelChannelFollowerStats.subscribersGainedSinceLastPost) && m.areEqual(this.subscribersLostSinceLastPost, modelChannelFollowerStats.subscribersLostSinceLastPost);
}
public final Integer getChannelsFollowing() {
return this.channelsFollowing;
}
public final Integer getGuildMembers() {
return this.guildMembers;
}
public final Integer getGuildsFollowing() {
return this.guildsFollowing;
}
public final long getLastFetched() {
return this.lastFetched;
}
public final Integer getSubscribersGainedSinceLastPost() {
return this.subscribersGainedSinceLastPost;
}
public final Integer getSubscribersLostSinceLastPost() {
return this.subscribersLostSinceLastPost;
}
public final Integer getUsersSeenEver() {
return this.usersSeenEver;
}
public int hashCode() {
long j = this.lastFetched;
int i = ((int) (j ^ (j >>> 32))) * 31;
Integer num = this.channelsFollowing;
int i2 = 0;
int hashCode = (i + (num != null ? num.hashCode() : 0)) * 31;
Integer num2 = this.guildMembers;
int hashCode2 = (hashCode + (num2 != null ? num2.hashCode() : 0)) * 31;
Integer num3 = this.guildsFollowing;
int hashCode3 = (hashCode2 + (num3 != null ? num3.hashCode() : 0)) * 31;
Integer num4 = this.usersSeenEver;
int hashCode4 = (hashCode3 + (num4 != null ? num4.hashCode() : 0)) * 31;
Integer num5 = this.subscribersGainedSinceLastPost;
int hashCode5 = (hashCode4 + (num5 != null ? num5.hashCode() : 0)) * 31;
Integer num6 = this.subscribersLostSinceLastPost;
if (num6 != null) {
i2 = num6.hashCode();
}
return hashCode5 + i2;
}
public String toString() {
StringBuilder R = a.R("ModelChannelFollowerStats(lastFetched=");
R.append(this.lastFetched);
R.append(", channelsFollowing=");
R.append(this.channelsFollowing);
R.append(", guildMembers=");
R.append(this.guildMembers);
R.append(", guildsFollowing=");
R.append(this.guildsFollowing);
R.append(", usersSeenEver=");
R.append(this.usersSeenEver);
R.append(", subscribersGainedSinceLastPost=");
R.append(this.subscribersGainedSinceLastPost);
R.append(", subscribersLostSinceLastPost=");
return a.E(R, this.subscribersLostSinceLastPost, ")");
}
}