.class public Lcom/helpshift/chat/HSEventProxy$2; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Ljava/lang/Runnable; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/helpshift/chat/HSEventProxy;->sendAuthFailureEvent(Ljava/lang/String;)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = null .end annotation # instance fields .field public final synthetic this$0:Lcom/helpshift/chat/HSEventProxy; .field public final synthetic val$reason:Ljava/lang/String; # direct methods .method public constructor (Lcom/helpshift/chat/HSEventProxy;Ljava/lang/String;)V .locals 0 iput-object p1, p0, Lcom/helpshift/chat/HSEventProxy$2;->this$0:Lcom/helpshift/chat/HSEventProxy; iput-object p2, p0, Lcom/helpshift/chat/HSEventProxy$2;->val$reason:Ljava/lang/String; .line 56 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public run()V .locals 3 iget-object v0, p0, Lcom/helpshift/chat/HSEventProxy$2;->this$0:Lcom/helpshift/chat/HSEventProxy; .line 59 invoke-static {v0}, Lcom/helpshift/chat/HSEventProxy;->access$000(Lcom/helpshift/chat/HSEventProxy;)Lcom/helpshift/HelpshiftEventsListener; move-result-object v0 if-nez v0, :cond_0 return-void .line 62 :cond_0 sget-object v0, Lcom/helpshift/HelpshiftAuthenticationFailureReason;->UNKNOWN:Lcom/helpshift/HelpshiftAuthenticationFailureReason; const-string v1, "missing user auth token" iget-object v2, p0, Lcom/helpshift/chat/HSEventProxy$2;->val$reason:Ljava/lang/String; .line 63 invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_1 .line 64 sget-object v0, Lcom/helpshift/HelpshiftAuthenticationFailureReason;->REASON_AUTH_TOKEN_NOT_PROVIDED:Lcom/helpshift/HelpshiftAuthenticationFailureReason; goto :goto_0 :cond_1 const-string v1, "invalid user auth token" iget-object v2, p0, Lcom/helpshift/chat/HSEventProxy$2;->val$reason:Ljava/lang/String; .line 66 invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_2 .line 67 sget-object v0, Lcom/helpshift/HelpshiftAuthenticationFailureReason;->REASON_INVALID_AUTH_TOKEN:Lcom/helpshift/HelpshiftAuthenticationFailureReason; :cond_2 :goto_0 iget-object v1, p0, Lcom/helpshift/chat/HSEventProxy$2;->this$0:Lcom/helpshift/chat/HSEventProxy; .line 69 invoke-static {v1}, Lcom/helpshift/chat/HSEventProxy;->access$000(Lcom/helpshift/chat/HSEventProxy;)Lcom/helpshift/HelpshiftEventsListener; move-result-object v1 invoke-interface {v1, v0}, Lcom/helpshift/HelpshiftEventsListener;->onUserAuthenticationFailure(Lcom/helpshift/HelpshiftAuthenticationFailureReason;)V return-void .end method