WebSocket.smali

.class public abstract Lsg/bigo/websocket/WebSocket;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lsg/bigo/websocket/WebSocket$CppProxy;
    }
.end annotation


# direct methods
.method public constructor <init>()V
    .registers 1

    .line 12
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static create()Lsg/bigo/websocket/WebSocket;
    .registers 2

    .line 32
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-ge v0, v1, :cond_15

    .line 34
    :try_start_6
    invoke-static {}, Lsg/bigo/websocket/WebSocket$CppProxy;->create()Lsg/bigo/websocket/WebSocket;

    move-result-object v0
    :try_end_a
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_6 .. :try_end_a} :catch_b

    return-object v0

    .line 37
    :catch_b
    :try_start_b
    invoke-static {}, Lsg/bigo/websocket/WebSocket$CppProxy;->create()Lsg/bigo/websocket/WebSocket;

    move-result-object v0
    :try_end_f
    .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_b .. :try_end_f} :catch_10

    return-object v0

    .line 39
    :catch_10
    invoke-static {}, Lsg/bigo/websocket/WebSocket$CppProxy;->create()Lsg/bigo/websocket/WebSocket;

    move-result-object v0

    return-object v0

    .line 43
    :cond_15
    invoke-static {}, Lsg/bigo/websocket/WebSocket$CppProxy;->create()Lsg/bigo/websocket/WebSocket;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public abstract close()V
.end method

.method public abstract connect(Ljava/lang/String;)Z
.end method

.method public abstract deinit()V
.end method

.method public abstract init(Lsg/bigo/websocket/WSHandler;Ljava/lang/String;)Z
.end method

.method public abstract lastError()Lsg/bigo/websocket/WSError;
.end method

.method public abstract status()Lsg/bigo/websocket/WSStatus;
.end method

.method public abstract write([B)I
.end method