apkfuckery/com.discord/smali_classes2/o0/c0.smali
2020-09-08 08:16:32 +00:00

68 lines
1.3 KiB
Smali

.class public final Lo0/c0;
.super Lokhttp3/RequestBody;
.source "RequestBody.kt"
# instance fields
.field public final synthetic a:Lokio/ByteString;
.field public final synthetic b:Lokhttp3/MediaType;
# direct methods
.method public constructor <init>(Lokio/ByteString;Lokhttp3/MediaType;)V
.locals 0
iput-object p1, p0, Lo0/c0;->a:Lokio/ByteString;
iput-object p2, p0, Lo0/c0;->b:Lokhttp3/MediaType;
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
return-void
.end method
# virtual methods
.method public contentLength()J
.locals 2
iget-object v0, p0, Lo0/c0;->a:Lokio/ByteString;
invoke-virtual {v0}, Lokio/ByteString;->h()I
move-result v0
int-to-long v0, v0
return-wide v0
.end method
.method public contentType()Lokhttp3/MediaType;
.locals 1
iget-object v0, p0, Lo0/c0;->b:Lokhttp3/MediaType;
return-object v0
.end method
.method public writeTo(Lokio/BufferedSink;)V
.locals 1
if-eqz p1, :cond_0
iget-object v0, p0, Lo0/c0;->a:Lokio/ByteString;
invoke-interface {p1, v0}, Lokio/BufferedSink;->y0(Lokio/ByteString;)Lokio/BufferedSink;
return-void
:cond_0
const-string p1, "sink"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method