166 lines
3.6 KiB
Smali
166 lines
3.6 KiB
Smali
.class final Lcom/vk/api/docs/DocsSave$a;
|
|
.super Lcom/vk/dto/common/data/JsonParser;
|
|
.source "DocsSave.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/vk/api/docs/DocsSave3;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1a
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vk/dto/common/data/JsonParser<",
|
|
"Lcom/vk/api/docs/DocsSave;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/vk/dto/common/data/JsonParser;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final a(Lorg/json/JSONArray;)[B
|
|
.locals 4
|
|
|
|
.line 10
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [B
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Lorg/json/JSONArray;->length()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
.line 12
|
|
invoke-virtual {p1, v2}, Lorg/json/JSONArray;->getInt(I)I
|
|
|
|
move-result v3
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
int-to-byte v3, v3
|
|
|
|
aput-byte v3, v0, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lorg/json/JSONObject;)Lcom/vk/api/docs/DocsSave;
|
|
.locals 9
|
|
|
|
.line 2
|
|
new-instance v8, Lcom/vk/api/docs/DocsSave;
|
|
|
|
const-string v0, "id"
|
|
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
const-string v0, "owner_id"
|
|
|
|
.line 3
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
const-string v0, "duration"
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
const-string v0, "link_ogg"
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v0, "json.getString(\"link_ogg\")"
|
|
|
|
invoke-static {v6, v0}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "link_mp3"
|
|
|
|
.line 6
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v0, "json.getString(\"link_mp3\")"
|
|
|
|
invoke-static {v5, v0}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "waveform"
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v4, "json.getJSONArray(\"waveform\")"
|
|
|
|
invoke-static {v0, v4}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0, v0}, Lcom/vk/api/docs/DocsSave$a;->a(Lorg/json/JSONArray;)[B
|
|
|
|
move-result-object v4
|
|
|
|
const-string v0, "access_key"
|
|
|
|
const-string v7, ""
|
|
|
|
.line 8
|
|
invoke-static {p1, v0, v7}, Lcom/vk/core/extensions/JsonObjectExt;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
move-object v0, v8
|
|
|
|
.line 9
|
|
invoke-direct/range {v0 .. v7}, Lcom/vk/api/docs/DocsSave;-><init>(III[BLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-object v8
|
|
.end method
|
|
|
|
.method public bridge synthetic a(Lorg/json/JSONObject;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/docs/DocsSave$a;->a(Lorg/json/JSONObject;)Lcom/vk/api/docs/DocsSave;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|