61 lines
2.7 KiB
Java
61 lines
2.7 KiB
Java
|
package com.discord.widgets.servers;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.View;
|
||
|
import com.discord.models.domain.ModelBan;
|
||
|
import com.discord.utilities.rest.RestAPI;
|
||
|
import com.discord.utilities.rx.ObservableExtensionsKt;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: WidgetServerSettingsBans.kt */
|
||
|
public final class WidgetServerSettingsBans$showConfirmUnbanDialog$1 extends o implements Function1<View, Unit> {
|
||
|
public final /* synthetic */ ModelBan $ban;
|
||
|
public final /* synthetic */ long $guildId;
|
||
|
public final /* synthetic */ WidgetServerSettingsBans this$0;
|
||
|
|
||
|
/* compiled from: WidgetServerSettingsBans.kt */
|
||
|
/* renamed from: com.discord.widgets.servers.WidgetServerSettingsBans$showConfirmUnbanDialog$1$1 reason: invalid class name */
|
||
|
public static final class AnonymousClass1 extends o implements Function1<Void, Unit> {
|
||
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
||
|
|
||
|
public AnonymousClass1() {
|
||
|
super(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(Void r1) {
|
||
|
invoke(r1);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(Void r1) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetServerSettingsBans$showConfirmUnbanDialog$1(WidgetServerSettingsBans widgetServerSettingsBans, long j, ModelBan modelBan) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetServerSettingsBans;
|
||
|
this.$guildId = j;
|
||
|
this.$ban = modelBan;
|
||
|
}
|
||
|
|
||
|
/* 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(View view) {
|
||
|
invoke(view);
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(View view) {
|
||
|
m.checkNotNullParameter(view, "it");
|
||
|
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().unbanUser(this.$guildId, this.$ban.getUser().i()), false, 1, null), this.this$0, null, 2, null), this.this$0.getClass(), (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, AnonymousClass1.INSTANCE, 62, (Object) null);
|
||
|
}
|
||
|
}
|