2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/models/domain/Harvest;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ModelUserConsents.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final completedAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final id:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final userId:J
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;)V
|
|
|
|
.locals 1
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "id"
|
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "createdAt"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {p4, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/models/domain/Harvest;->id:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-wide p2, p0, Lcom/discord/models/domain/Harvest;->userId:J
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object p5, p0, Lcom/discord/models/domain/Harvest;->completedAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic canRequest$default(Lcom/discord/models/domain/Harvest;JILjava/lang/Object;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p3, p3, 0x1
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-static {}, Lcom/discord/utilities/time/ClockFactory;->get()Lcom/discord/utilities/time/Clock;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-wide p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/discord/models/domain/Harvest;->canRequest(J)Z
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/models/domain/Harvest;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lcom/discord/models/domain/Harvest;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
and-int/lit8 p7, p6, 0x1
|
|
|
|
|
|
|
|
if-eqz p7, :cond_0
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/models/domain/Harvest;->id:Ljava/lang/String;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
and-int/lit8 p7, p6, 0x2
|
|
|
|
|
|
|
|
if-eqz p7, :cond_1
|
|
|
|
|
|
|
|
iget-wide p2, p0, Lcom/discord/models/domain/Harvest;->userId:J
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-wide v0, p2
|
|
|
|
|
|
|
|
and-int/lit8 p2, p6, 0x4
|
|
|
|
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
|
|
|
|
iget-object p4, p0, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object p7, p4
|
|
|
|
|
|
|
|
and-int/lit8 p2, p6, 0x8
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
iget-object p5, p0, Lcom/discord/models/domain/Harvest;->completedAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
move-object v2, p5
|
|
|
|
|
|
|
|
move-object p2, p0
|
|
|
|
|
|
|
|
move-object p3, p1
|
|
|
|
|
|
|
|
move-wide p4, v0
|
|
|
|
|
|
|
|
move-object p6, p7
|
|
|
|
|
|
|
|
move-object p7, v2
|
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p7}, Lcom/discord/models/domain/Harvest;->copy(Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;)Lcom/discord/models/domain/Harvest;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final createdAtInMillis()J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/time/TimeUtils;->parseUTCDate(Ljava/lang/String;)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final canRequest(J)Z
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/models/domain/Harvest;->nextAvailableRequestInMillis()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component1()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->id:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component2()J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-wide v0, p0, Lcom/discord/models/domain/Harvest;->userId:J
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component3()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final component4()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->completedAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final copy(Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;)Lcom/discord/models/domain/Harvest;
|
|
|
|
.locals 7
|
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "id"
|
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const-string v0, "createdAt"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {p4, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/models/domain/Harvest;
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
move-wide v3, p2
|
|
|
|
|
|
|
|
move-object v5, p4
|
|
|
|
|
|
|
|
move-object v6, p5
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/discord/models/domain/Harvest;-><init>(Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
if-eq p0, p1, :cond_1
|
|
|
|
|
|
|
|
instance-of v0, p1, Lcom/discord/models/domain/Harvest;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/models/domain/Harvest;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->id:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object v1, p1, Lcom/discord/models/domain/Harvest;->id:Ljava/lang/String;
|
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-wide v0, p0, Lcom/discord/models/domain/Harvest;->userId:J
|
|
|
|
|
|
|
|
iget-wide v2, p1, Lcom/discord/models/domain/Harvest;->userId:J
|
|
|
|
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object v1, p1, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v0, v1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->completedAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object p1, p1, Lcom/discord/models/domain/Harvest;->completedAt:Ljava/lang/String;
|
|
|
|
|
2020-11-09 00:01:03 +00:00
|
|
|
invoke-static {v0, p1}, Lc0/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getCompletedAt()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->completedAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getCreatedAt()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getId()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->id:Ljava/lang/String;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getUserId()J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-wide v0, p0, Lcom/discord/models/domain/Harvest;->userId:J
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public hashCode()I
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/models/domain/Harvest;->id:Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-wide v2, p0, Lcom/discord/models/domain/Harvest;->userId:J
|
|
|
|
|
|
|
|
const/16 v4, 0x20
|
|
|
|
|
|
|
|
ushr-long v4, v2, v4
|
|
|
|
|
|
|
|
xor-long/2addr v2, v4
|
|
|
|
|
|
|
|
long-to-int v3, v2
|
|
|
|
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/models/domain/Harvest;->completedAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final nextAvailableRequestInMillis()J
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/models/domain/Harvest;->createdAtInMillis()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
const-wide v2, 0x9a7ec800L
|
|
|
|
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string v0, "Harvest(id="
|
|
|
|
|
2020-11-02 23:44:01 +00:00
|
|
|
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/models/domain/Harvest;->id:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", userId="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-wide v1, p0, Lcom/discord/models/domain/Harvest;->userId:J
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", createdAt="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/models/domain/Harvest;->createdAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, ", completedAt="
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/models/domain/Harvest;->completedAt:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v2, ")"
|
|
|
|
|
2020-11-02 23:44:01 +00:00
|
|
|
invoke-static {v0, v1, v2}, Lf/e/c/a/a;->w(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|