b.smali
.class public final Lgj/b;
.super Ljava/lang/Object;
.source "WssChannelConnectCountNotifier.kt"
# interfaces
.implements Lgj/a;
# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicInteger;
.field public final b:Lkotlin/jvm/functions/Function1;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function1<",
"Lcom/shopee/foody/driver/push/state/WssChannelEvent;",
"Lkotlin/Unit;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lkotlin/jvm/functions/Function1;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function1<",
"-",
"Lcom/shopee/foody/driver/push/state/WssChannelEvent;",
"Lkotlin/Unit;",
">;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lgj/b;->b:Lkotlin/jvm/functions/Function1;
new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;
const/high16 v0, -0x80000000
invoke-direct {p1, v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
iput-object p1, p0, Lgj/b;->a:Ljava/util/concurrent/atomic/AtomicInteger;
return-void
.end method
# virtual methods
.method public a(I)V
.registers 4
iget-object v0, p0, Lgj/b;->a:Ljava/util/concurrent/atomic/AtomicInteger;
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndSet(I)I
move-result v0
const/4 v1, 0x2
if-ne v0, v1, :cond_1e
const/4 v0, 0x1
if-ne p1, v0, :cond_14
iget-object p1, p0, Lgj/b;->b:Lkotlin/jvm/functions/Function1;
sget-object v0, Lcom/shopee/foody/driver/push/state/WssChannelEvent;->CONNECT_FAILED:Lcom/shopee/foody/driver/push/state/WssChannelEvent;
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_1e
:cond_14
const/4 v0, 0x3
if-ne p1, v0, :cond_1e
iget-object p1, p0, Lgj/b;->b:Lkotlin/jvm/functions/Function1;
sget-object v0, Lcom/shopee/foody/driver/push/state/WssChannelEvent;->CONNECT_SUCCESS:Lcom/shopee/foody/driver/push/state/WssChannelEvent;
invoke-interface {p1, v0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
:cond_1e
:goto_1e
return-void
.end method