82 lines
2.1 KiB
Smali
82 lines
2.1 KiB
Smali
.class public abstract Lcom/my/target/AbstractJsCall;
|
|
.super Ljava/lang/Object;
|
|
.source "AbstractJsCall.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/my/target/JsCall;
|
|
|
|
|
|
# instance fields
|
|
.field private final a:Lorg/json/JSONObject;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field b:Lorg/json/JSONObject;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 2
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lorg/json/JSONException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/my/target/AbstractJsCall;->a:Lorg/json/JSONObject;
|
|
|
|
.line 3
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/my/target/AbstractJsCall;->b:Lorg/json/JSONObject;
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/my/target/AbstractJsCall;->a:Lorg/json/JSONObject;
|
|
|
|
const-string v1, "method"
|
|
|
|
invoke-virtual {v0, v1, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lcom/my/target/AbstractJsCall;->a:Lorg/json/JSONObject;
|
|
|
|
iget-object v0, p0, Lcom/my/target/AbstractJsCall;->b:Lorg/json/JSONObject;
|
|
|
|
const-string v1, "data"
|
|
|
|
invoke-virtual {p1, v1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public g()Lorg/json/JSONObject;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/my/target/AbstractJsCall;->a:Lorg/json/JSONObject;
|
|
|
|
return-object v0
|
|
.end method
|