discord-jadx/app/src/main/java/com/discord/stores/StoreApplicationCommandFrec...

34 lines
1.8 KiB
Java

package com.discord.stores;
import c0.z.d.o;
import com.discord.utilities.frecency.FrecencyTracker;
import java.util.Map;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreApplicationCommandFrecency.kt */
public final class StoreApplicationCommandFrecency$onCommandUsed$1 extends o implements Function0<Unit> {
public final /* synthetic */ String $commandId;
public final /* synthetic */ Long $guildId;
public final /* synthetic */ StoreApplicationCommandFrecency this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreApplicationCommandFrecency$onCommandUsed$1(StoreApplicationCommandFrecency storeApplicationCommandFrecency, Long l, String str) {
super(0);
this.this$0 = storeApplicationCommandFrecency;
this.$guildId = l;
this.$commandId = str;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo17invoke() {
FrecencyTracker.track$default(StoreApplicationCommandFrecency.access$getFrecency$p(this.this$0), StoreApplicationCommandFrecency.access$getKey(this.this$0, this.$guildId, this.$commandId), 0, 2, null);
StoreApplicationCommandFrecency.access$getFrecencyCache$p(this.this$0).set(StoreApplicationCommandFrecency.access$getFrecency$p(this.this$0), true);
Map access$getTopCommandIds$p = StoreApplicationCommandFrecency.access$getTopCommandIds$p(this.this$0);
Long l = this.$guildId;
access$getTopCommandIds$p.put(Long.valueOf(l != null ? l.longValue() : 0), StoreApplicationCommandFrecency.access$getAllTopCommandIds(this.this$0, this.$guildId));
StoreApplicationCommandFrecency storeApplicationCommandFrecency = this.this$0;
storeApplicationCommandFrecency.markChanged(storeApplicationCommandFrecency);
}
}