60 lines
2.9 KiB
Java
60 lines
2.9 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$4 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$4$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$4 this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public AnonymousClass1(StoreOutboundPromotions$handleConnectionOpen$4 storeOutboundPromotions$handleConnectionOpen$4, List list) {
|
||
|
super(0);
|
||
|
this.this$0 = storeOutboundPromotions$handleConnectionOpen$4;
|
||
|
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 storeOutboundPromotions2 = this.this$0.this$0;
|
||
|
List list2 = this.$validActivePromos;
|
||
|
m.checkNotNullExpressionValue(list2, "validActivePromos");
|
||
|
StoreOutboundPromotions.access$setState$p(storeOutboundPromotions, new StoreOutboundPromotions.State.Loaded(list, StoreOutboundPromotions.access$getUnseenCount(storeOutboundPromotions2, list2)));
|
||
|
this.this$0.this$0.markChanged();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public StoreOutboundPromotions$handleConnectionOpen$4(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));
|
||
|
}
|
||
|
}
|