discord-jadx/app/src/main/java/com/discord/widgets/guildscheduledevent/WidgetGuildScheduledEventSettings$viewModel$2.java

32 lines
2.1 KiB
Java
Raw Normal View History

2021-08-04 23:47:20 +00:00
package com.discord.widgets.guildscheduledevent;
2021-08-18 06:27:30 +00:00
import com.discord.api.guildscheduledevent.GuildScheduledEventEntityType;
2021-08-04 23:47:20 +00:00
import com.discord.app.AppViewModel;
import com.discord.utilities.intent.IntentUtilsKt;
import com.discord.widgets.guildscheduledevent.GuildScheduledEventSettingsViewModel;
2021-11-02 06:38:17 +00:00
import d0.z.d.o;
2021-09-16 17:51:42 +00:00
import java.io.Serializable;
import java.util.Objects;
2021-08-04 23:47:20 +00:00
import kotlin.jvm.functions.Function0;
/* compiled from: WidgetGuildScheduledEventSettings.kt */
2022-03-07 09:34:54 +00:00
/* loaded from: classes2.dex */
2021-08-04 23:47:20 +00:00
public final class WidgetGuildScheduledEventSettings$viewModel$2 extends o implements Function0<AppViewModel<GuildScheduledEventSettingsViewModel.ViewState>> {
public final /* synthetic */ WidgetGuildScheduledEventSettings this$0;
2022-03-07 09:34:54 +00:00
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
2021-08-04 23:47:20 +00:00
public WidgetGuildScheduledEventSettings$viewModel$2(WidgetGuildScheduledEventSettings widgetGuildScheduledEventSettings) {
super(0);
this.this$0 = widgetGuildScheduledEventSettings;
}
2022-03-07 09:34:54 +00:00
/* JADX WARN: Can't rename method to resolve collision */
2021-08-04 23:47:20 +00:00
@Override // kotlin.jvm.functions.Function0
2022-03-07 09:34:54 +00:00
public final AppViewModel<GuildScheduledEventSettingsViewModel.ViewState> invoke() {
2021-09-16 17:51:42 +00:00
long access$getGuildId$p = WidgetGuildScheduledEventSettings.access$getGuildId$p(this.this$0);
2021-09-21 06:31:55 +00:00
Long access$getExistingGuildScheduledEventId$p = WidgetGuildScheduledEventSettings.access$getExistingGuildScheduledEventId$p(this.this$0);
2021-09-16 17:51:42 +00:00
Serializable serializableExtra = this.this$0.getMostRecentIntent().getSerializableExtra("EXTRA_ENTITY_TYPE");
Objects.requireNonNull(serializableExtra, "null cannot be cast to non-null type com.discord.api.guildscheduledevent.GuildScheduledEventEntityType");
2021-09-21 06:31:55 +00:00
return new GuildScheduledEventSettingsViewModel(access$getGuildId$p, access$getExistingGuildScheduledEventId$p, (GuildScheduledEventEntityType) serializableExtra, IntentUtilsKt.getLongExtraOrNull(this.this$0.getMostRecentIntent(), "com.discord.intent.extra.EXTRA_CHANNEL_ID"), this.this$0.getMostRecentIntent().getStringExtra("EXTRA_EXTERNAL_LOCATION"), null, 32, null);
2021-08-04 23:47:20 +00:00
}
}