.class public final Lcom/discord/utilities/rest/RestAPIAbortMessages$ResponseResolver; .super Ljava/lang/Object; .source "RestAPIAbortMessages.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/discord/utilities/rest/RestAPIAbortMessages; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "ResponseResolver" .end annotation # static fields .field public static final INSTANCE:Lcom/discord/utilities/rest/RestAPIAbortMessages$ResponseResolver; # direct methods .method public static constructor ()V .locals 1 new-instance v0, Lcom/discord/utilities/rest/RestAPIAbortMessages$ResponseResolver; invoke-direct {v0}, Lcom/discord/utilities/rest/RestAPIAbortMessages$ResponseResolver;->()V sput-object v0, Lcom/discord/utilities/rest/RestAPIAbortMessages$ResponseResolver;->INSTANCE:Lcom/discord/utilities/rest/RestAPIAbortMessages$ResponseResolver; return-void .end method .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public final getRelationshipResponse(Landroid/content/Context;ILjava/lang/String;)Ljava/lang/CharSequence; .locals 3 const-string/jumbo v0, "username" invoke-static {p3, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {p2}, Lcom/discord/utilities/rest/RestAPIAbortMessages;->getAbortCodeMessageResId(I)Ljava/lang/Integer; move-result-object v0 if-eqz v0, :cond_0 invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I move-result v0 goto :goto_0 :cond_0 const v0, 0x7f12008f :goto_0 const v1, 0x13880 const/4 v2, 0x0 if-eq p2, v1, :cond_1 if-eqz p1, :cond_2 invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String; move-result-object p1 goto :goto_1 :cond_1 if-eqz p1, :cond_2 const/4 p2, 0x1 new-array p2, p2, [Ljava/lang/Object; const/4 v1, 0x0 aput-object p3, p2, v1 invoke-virtual {p1, v0, p2}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 goto :goto_1 :cond_2 move-object p1, v2 :goto_1 if-eqz p1, :cond_3 invoke-static {p1}, Lf/a/j/a/b/h;->b(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder; move-result-object v2 :cond_3 return-object v2 .end method