discord-jadx/app/src/main/java/com/discord/stores/StoreOutboundPromotions$han...

57 lines
2.6 KiB
Java

package com.discord.stores;
import com.discord.api.premium.OutboundPromotion;
import com.discord.stores.StoreOutboundPromotions;
import d0.z.d.m;
import d0.z.d.o;
import java.util.List;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: StoreOutboundPromotions.kt */
public final class StoreOutboundPromotions$handleConnectionOpen$3 extends o implements Function1<List<? extends OutboundPromotion>, Unit> {
public final /* synthetic */ StoreOutboundPromotions this$0;
/* compiled from: StoreOutboundPromotions.kt */
/* renamed from: com.discord.stores.StoreOutboundPromotions$handleConnectionOpen$3$1 reason: invalid class name */
public static final class AnonymousClass1 extends o implements Function0<Unit> {
public final /* synthetic */ List $validActivePromos;
public final /* synthetic */ StoreOutboundPromotions$handleConnectionOpen$3 this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public AnonymousClass1(StoreOutboundPromotions$handleConnectionOpen$3 storeOutboundPromotions$handleConnectionOpen$3, List list) {
super(0);
this.this$0 = storeOutboundPromotions$handleConnectionOpen$3;
this.$validActivePromos = list;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
StoreOutboundPromotions storeOutboundPromotions = this.this$0.this$0;
List list = this.$validActivePromos;
m.checkNotNullExpressionValue(list, "validActivePromos");
StoreOutboundPromotions.access$setState$p(storeOutboundPromotions, new StoreOutboundPromotions.State.Loaded(list));
this.this$0.this$0.markChanged();
}
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreOutboundPromotions$handleConnectionOpen$3(StoreOutboundPromotions storeOutboundPromotions) {
super(1);
this.this$0 = storeOutboundPromotions;
}
/* 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(List<? extends OutboundPromotion> list) {
invoke((List<OutboundPromotion>) list);
return Unit.a;
}
public final void invoke(List<OutboundPromotion> list) {
StoreOutboundPromotions.access$getDispatcher$p(this.this$0).schedule(new AnonymousClass1(this, list));
}
}