75 lines
3.6 KiB
Java
75 lines
3.6 KiB
Java
|
package com.discord.stores;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import com.discord.models.sticker.dto.ModelStickerPack;
|
||
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||
|
import d0.t.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: StoreStickers.kt */
|
||
|
public final class StoreStickers$fetchStickerPack$1 extends o implements Function0<Unit> {
|
||
|
public final /* synthetic */ long $stickerPackId;
|
||
|
public final /* synthetic */ StoreStickers this$0;
|
||
|
|
||
|
/* compiled from: StoreStickers.kt */
|
||
|
/* renamed from: com.discord.stores.StoreStickers$fetchStickerPack$1$1 reason: invalid class name */
|
||
|
public static final class AnonymousClass1 extends o implements Function1<ModelStickerPack, Unit> {
|
||
|
public final /* synthetic */ StoreStickers$fetchStickerPack$1 this$0;
|
||
|
|
||
|
/* compiled from: StoreStickers.kt */
|
||
|
/* renamed from: com.discord.stores.StoreStickers$fetchStickerPack$1$1$1 reason: invalid class name */
|
||
|
public static final class AnonymousClass1 extends o implements Function0<Unit> {
|
||
|
public final /* synthetic */ ModelStickerPack $newPack;
|
||
|
public final /* synthetic */ AnonymousClass1 this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public AnonymousClass1(AnonymousClass1 r1, ModelStickerPack modelStickerPack) {
|
||
|
super(0);
|
||
|
this.this$0 = r1;
|
||
|
this.$newPack = modelStickerPack;
|
||
|
}
|
||
|
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
/* renamed from: invoke */
|
||
|
public final void mo1invoke() {
|
||
|
this.this$0.this$0.this$0.handleNewLoadedStickerPacks(m.listOf(this.$newPack));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public AnonymousClass1(StoreStickers$fetchStickerPack$1 storeStickers$fetchStickerPack$1) {
|
||
|
super(1);
|
||
|
this.this$0 = storeStickers$fetchStickerPack$1;
|
||
|
}
|
||
|
|
||
|
/* 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(ModelStickerPack modelStickerPack) {
|
||
|
invoke(modelStickerPack);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(ModelStickerPack modelStickerPack) {
|
||
|
d0.z.d.m.checkNotNullParameter(modelStickerPack, "newPack");
|
||
|
StoreStickers.access$getDispatcher$p(this.this$0.this$0).schedule(new AnonymousClass1(this, modelStickerPack));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public StoreStickers$fetchStickerPack$1(StoreStickers storeStickers, long j) {
|
||
|
super(0);
|
||
|
this.this$0 = storeStickers;
|
||
|
this.$stickerPackId = j;
|
||
|
}
|
||
|
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
/* renamed from: invoke */
|
||
|
public final void mo1invoke() {
|
||
|
this.this$0.handleNewLoadingStickerPacks(m.listOf(Long.valueOf(this.$stickerPackId)));
|
||
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(StoreStickers.access$getApi$p(this.this$0).getStickerPack(this.$stickerPackId), false, 1, null), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new AnonymousClass1(this), 62, (Object) null);
|
||
|
}
|
||
|
}
|