apkfuckery/com.discord/smali/okhttp3/MultipartBody$a.smali

114 lines
2.7 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lokhttp3/MultipartBody$a;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "MultipartBody.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/MultipartBody;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
2019-05-16 22:41:35 +00:00
.field public final bpk:Lokio/ByteString;
2019-04-06 01:08:52 +00:00
2019-05-16 22:41:35 +00:00
.field public final bpn:Ljava/util/List;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/MultipartBody$Part;",
">;"
}
.end annotation
.end field
2019-05-16 22:41:35 +00:00
.field public bpo:Lokhttp3/MediaType;
2019-02-04 20:08:30 +00:00
# direct methods
.method public constructor <init>()V
.locals 1
invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;
move-result-object v0
invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Lokhttp3/MultipartBody$a;-><init>(Ljava/lang/String;)V
return-void
.end method
.method private constructor <init>(Ljava/lang/String;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-05-16 22:41:35 +00:00
sget-object v0, Lokhttp3/MultipartBody;->bpc:Lokhttp3/MediaType;
2019-02-04 20:08:30 +00:00
2019-05-16 22:41:35 +00:00
iput-object v0, p0, Lokhttp3/MultipartBody$a;->bpo:Lokhttp3/MediaType;
2019-02-04 20:08:30 +00:00
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
2019-05-16 22:41:35 +00:00
iput-object v0, p0, Lokhttp3/MultipartBody$a;->bpn:Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {p1}, Lokio/ByteString;->ep(Ljava/lang/String;)Lokio/ByteString;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-05-16 22:41:35 +00:00
iput-object p1, p0, Lokhttp3/MultipartBody$a;->bpk:Lokio/ByteString;
2019-02-04 20:08:30 +00:00
return-void
.end method
# virtual methods
.method public final a(Lokhttp3/Headers;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$a;
.locals 0
.param p1 # Lokhttp3/Headers;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
invoke-static {p1, p2}, Lokhttp3/MultipartBody$Part;->b(Lokhttp3/Headers;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$Part;
move-result-object p1
invoke-virtual {p0, p1}, Lokhttp3/MultipartBody$a;->a(Lokhttp3/MultipartBody$Part;)Lokhttp3/MultipartBody$a;
move-result-object p1
return-object p1
.end method
.method public final a(Lokhttp3/MultipartBody$Part;)Lokhttp3/MultipartBody$a;
.locals 1
if-eqz p1, :cond_0
2019-05-16 22:41:35 +00:00
iget-object v0, p0, Lokhttp3/MultipartBody$a;->bpn:Ljava/util/List;
2019-02-04 20:08:30 +00:00
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "part == null"
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method