164 lines
4.2 KiB
Smali
164 lines
4.2 KiB
Smali
.class public Lcom/vk/api/utils/UtilsProxiesPreferences;
|
|
.super Lcom/vk/api/base/ApiRequest;
|
|
.source "UtilsProxiesPreferences.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/vk/api/utils/UtilsProxiesPreferences$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vk/api/base/ApiRequest<",
|
|
"Lcom/vk/api/utils/UtilsProxiesPreferences$a;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;Ljava/util/Map;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "utils.getProxiesPreferences"
|
|
|
|
.line 1
|
|
invoke-direct {p0, v0}, Lcom/vk/api/base/ApiRequest;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, "user_id"
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v0, p1}, Lcom/vk/api/base/ApiRequest;->c(Ljava/lang/String;Ljava/lang/String;)Lcom/vk/api/base/ApiRequest;
|
|
|
|
.line 3
|
|
new-instance p1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {p1, p2}, Lorg/json/JSONObject;-><init>(Ljava/util/Map;)V
|
|
|
|
invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "log_info"
|
|
|
|
invoke-virtual {p0, p2, p1}, Lcom/vk/api/base/ApiRequest;->c(Ljava/lang/String;Ljava/lang/String;)Lcom/vk/api/base/ApiRequest;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lorg/json/JSONObject;)Lcom/vk/api/utils/UtilsProxiesPreferences$a;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "response"
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
new-instance v0, Lcom/vk/api/utils/UtilsProxiesPreferences$a;
|
|
|
|
invoke-direct {v0}, Lcom/vk/api/utils/UtilsProxiesPreferences$a;-><init>()V
|
|
|
|
const-string v1, "type"
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, v0, Lcom/vk/api/utils/UtilsProxiesPreferences$a;->a:I
|
|
|
|
.line 5
|
|
iget v1, v0, Lcom/vk/api/utils/UtilsProxiesPreferences$a;->a:I
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
const/4 v2, 0x4
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
const-string v1, "title"
|
|
|
|
.line 6
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lcom/vk/api/utils/UtilsProxiesPreferences$a;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "message"
|
|
|
|
.line 7
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lcom/vk/api/utils/UtilsProxiesPreferences$a;->c:Ljava/lang/String;
|
|
|
|
const-string v1, "button"
|
|
|
|
.line 8
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v0, Lcom/vk/api/utils/UtilsProxiesPreferences$a;->d:Ljava/lang/String;
|
|
|
|
const-string v1, "url"
|
|
|
|
.line 9
|
|
invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, v0, Lcom/vk/api/utils/UtilsProxiesPreferences$a;->e:Ljava/lang/String;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic a(Lorg/json/JSONObject;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/vk/api/utils/UtilsProxiesPreferences;->a(Lorg/json/JSONObject;)Lcom/vk/api/utils/UtilsProxiesPreferences$a;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|