105 lines
2.3 KiB
Smali
105 lines
2.3 KiB
Smali
.class public abstract Lcom/discord/utilities/websocket/ZLibWebSocketListener$Listener;
|
|
.super Lokhttp3/WebSocketListener;
|
|
.source "ZLibWebSocketListener.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/utilities/websocket/ZLibWebSocketListener;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x409
|
|
name = "Listener"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final rawMessageHandler:Lcom/discord/utilities/websocket/RawMessageHandler;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lokhttp3/WebSocketListener;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getRawMessageHandler()Lcom/discord/utilities/websocket/RawMessageHandler;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/websocket/ZLibWebSocketListener$Listener;->rawMessageHandler:Lcom/discord/utilities/websocket/RawMessageHandler;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public abstract onInflateError(Ljava/lang/Exception;)V
|
|
.end method
|
|
|
|
.method public abstract onInflatedMessage(Lokhttp3/WebSocket;Ljava/io/InputStreamReader;I)V
|
|
.end method
|
|
|
|
.method public final onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_0
|
|
const-string p1, "text"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string/jumbo p1, "webSocket"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_0
|
|
const-string p1, "bytes"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string/jumbo p1, "webSocket"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|