.class public final Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$Companion$create$filteredResults$6; .super Ly/u/b/k; .source "WidgetGlobalSearchModel.kt" # interfaces .implements Lkotlin/jvm/functions/Function1; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$Companion;->create(Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$SearchContext;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$UsersContext;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ChannelContext;Lcom/discord/widgets/user/search/WidgetGlobalSearchGuildsModel;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Lcom/discord/widgets/user/search/WidgetGlobalSearchModel; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ly/u/b/k;", "Lkotlin/jvm/functions/Function1<", "Lcom/discord/models/domain/ModelChannel;", "Ljava/lang/Boolean;", ">;" } .end annotation # instance fields .field public final synthetic $channelContext:Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ChannelContext; # direct methods .method public constructor (Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ChannelContext;)V .locals 0 iput-object p1, p0, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$Companion$create$filteredResults$6;->$channelContext:Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ChannelContext; const/4 p1, 0x1 invoke-direct {p0, p1}, Ly/u/b/k;->(I)V return-void .end method # virtual methods .method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object; .locals 0 check-cast p1, Lcom/discord/models/domain/ModelChannel; invoke-virtual {p0, p1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$Companion$create$filteredResults$6;->invoke(Lcom/discord/models/domain/ModelChannel;)Z move-result p1 invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object p1 return-object p1 .end method .method public final invoke(Lcom/discord/models/domain/ModelChannel;)Z .locals 3 if-eqz p1, :cond_2 iget-object v0, p0, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$Companion$create$filteredResults$6;->$channelContext:Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ChannelContext; invoke-virtual {v0}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ChannelContext;->getChannelPerms()Ljava/util/Map; move-result-object v0 invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J move-result-wide v1 invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long; move-result-object p1 invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 const/4 v0, 0x0 if-eqz p1, :cond_0 goto :goto_0 :cond_0 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p1 :goto_0 check-cast p1, Ljava/lang/Number; invoke-virtual {p1}, Ljava/lang/Number;->intValue()I move-result p1 const/16 v1, 0x400 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v2 invoke-static {v1, v2}, Lcom/discord/utilities/permissions/PermissionUtils;->can(ILjava/lang/Integer;)Z move-result v1 if-eqz v1, :cond_1 const/high16 v1, 0x100000 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p1 invoke-static {v1, p1}, Lcom/discord/utilities/permissions/PermissionUtils;->can(ILjava/lang/Integer;)Z move-result p1 if-eqz p1, :cond_1 const/4 v0, 0x1 :cond_1 return v0 :cond_2 const-string p1, "it" invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method