discord-jadx/app/src/main/java/com/discord/utilities/analytics/AnalyticsTracker$trackUserV...

63 lines
2.9 KiB
Java

package com.discord.utilities.analytics;
import com.discord.api.channel.Channel;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Map;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: AnalyticsTracker.kt */
public final class AnalyticsTracker$trackUserVoiceEvent$1 extends o implements Function1<Map<String, Object>, Unit> {
public final /* synthetic */ String $inputMode;
public final /* synthetic */ Channel $this_trackUserVoiceEvent;
public final /* synthetic */ Pair $throttleKey;
/* compiled from: AnalyticsTracker.kt */
/* renamed from: com.discord.utilities.analytics.AnalyticsTracker$trackUserVoiceEvent$1$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function0<Map<String, ? extends Object>> {
public final /* synthetic */ Map $gameProperties;
public final /* synthetic */ AnalyticsTracker$trackUserVoiceEvent$1 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(AnalyticsTracker$trackUserVoiceEvent$1 analyticsTracker$trackUserVoiceEvent$1, Map map) {
super(0);
this.this$0 = analyticsTracker$trackUserVoiceEvent$1;
this.$gameProperties = map;
}
/* Return type fixed from 'java.util.Map<java.lang.String, java.lang.Object>' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final Map<String, ? extends Object> mo1invoke() {
this.$gameProperties.put("mode", this.this$0.$inputMode);
this.$gameProperties.put("channel", Long.valueOf(this.this$0.$this_trackUserVoiceEvent.h()));
this.$gameProperties.put("channel_type", Integer.valueOf(this.this$0.$this_trackUserVoiceEvent.A()));
this.$gameProperties.put("server", Long.valueOf(this.this$0.$this_trackUserVoiceEvent.f()));
return this.$gameProperties;
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnalyticsTracker$trackUserVoiceEvent$1(Channel channel, Pair pair, String str) {
super(1);
this.$this_trackUserVoiceEvent = channel;
this.$throttleKey = pair;
this.$inputMode = str;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(Map<String, Object> map) {
invoke(map);
return Unit.a;
}
public final void invoke(Map<String, Object> map) {
m.checkNotNullParameter(map, "gameProperties");
AnalyticsTracker.INSTANCE.getTracker().track(this.$throttleKey, 900000, new AnonymousClass1(this, map));
}
}