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

29 lines
1.2 KiB
Java

package com.discord.utilities.analytics;
import com.discord.api.channel.Channel;
import com.discord.models.domain.ModelAuditLogEntry;
import d0.o;
import d0.t.h0;
import d0.z.d.m;
import j0.k.b;
import java.util.Map;
/* compiled from: AnalyticsTracker.kt */
public final class AnalyticsTracker$addAttachment$1<T, R> implements b<Channel, Map<String, ? extends Object>> {
public final /* synthetic */ String $mimeType;
public final /* synthetic */ String $source;
public final /* synthetic */ int $totalAttachments;
public AnalyticsTracker$addAttachment$1(String str, String str2, int i) {
this.$source = str;
this.$mimeType = str2;
this.$totalAttachments = i;
}
public final Map<String, Object> call(Channel channel) {
Map mapOf = h0.mapOf(o.to("source", this.$source), o.to("action_type", 0), o.to("mime_type", this.$mimeType), o.to("total_attachments", Integer.valueOf(this.$totalAttachments)), o.to(ModelAuditLogEntry.CHANGE_KEY_GUILD_ID, Long.valueOf(channel.f())));
AnalyticsUtils analyticsUtils = AnalyticsUtils.INSTANCE;
m.checkNotNullExpressionValue(channel, "it");
return h0.plus(mapOf, analyticsUtils.getProperties$app_productionBetaRelease(channel));
}
}