apkfuckery/com.discord/smali/com/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction.smali
2020-01-28 01:59:01 +01:00

128 lines
2.8 KiB
Smali

.class public final Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;
.super Ljava/lang/Object;
.source "WidgetChannelSelector.kt"
# interfaces
.implements Lcom/discord/widgets/channels/WidgetChannelSelector$FilterFunction;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/widgets/channels/WidgetChannelSelector;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "TypeFilterFunction"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction$Creator;
}
.end annotation
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
# instance fields
.field public final type:I
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction$Creator;
invoke-direct {v0}, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction$Creator;-><init>()V
sput-object v0, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method public constructor <init>(I)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;->type:I
return-void
.end method
# virtual methods
.method public describeContents()I
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public final getType()I
.locals 1
iget v0, p0, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;->type:I
return v0
.end method
.method public includeChannel(Lcom/discord/models/domain/ModelChannel;)Z
.locals 1
if-eqz p1, :cond_1
iget v0, p0, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;->type:I
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getType()I
move-result p1
if-ne v0, p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
:cond_1
const-string p1, "channel"
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public writeToParcel(Landroid/os/Parcel;I)V
.locals 0
if-eqz p1, :cond_0
iget p2, p0, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;->type:I
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
return-void
:cond_0
const-string p1, "parcel"
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method