83 lines
2.1 KiB
Smali
83 lines
2.1 KiB
Smali
.class public Lcom/moji/http/redleaves/RLSubscribeRequest;
|
|
.super Lcom/moji/http/redleaves/RLBaseRequest;
|
|
.source "RLSubscribeRequest.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/http/redleaves/RLBaseRequest<",
|
|
"Lcom/moji/http/redleaves/entity/RLSubscribeResult;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(J)V
|
|
.locals 2
|
|
|
|
const-string v0, "attraction/add"
|
|
|
|
.line 17
|
|
invoke-direct {p0, v0}, Lcom/moji/http/redleaves/RLBaseRequest;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, "type"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 18
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/http/redleaves/RLSubscribeRequest;->a(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
const-string v0, "attraction_id"
|
|
|
|
.line 19
|
|
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/http/redleaves/RLSubscribeRequest;->a(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
.line 20
|
|
new-instance p1, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {p1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
invoke-virtual {p1}, Lcom/moji/preferences/ProcessPrefer;->f()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "terminal"
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const-string p1, ""
|
|
|
|
.line 21
|
|
:cond_0
|
|
invoke-virtual {p0, p2, p1}, Lcom/moji/http/redleaves/RLSubscribeRequest;->a(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a()Lcom/moji/requestcore/method/MJMethod;
|
|
.locals 2
|
|
|
|
.line 26
|
|
new-instance v0, Lcom/moji/requestcore/method/POST_JSON;
|
|
|
|
new-instance v1, Lcom/moji/requestcore/encrypt/DefaultEncryptParamImpl;
|
|
|
|
invoke-direct {v1}, Lcom/moji/requestcore/encrypt/DefaultEncryptParamImpl;-><init>()V
|
|
|
|
invoke-direct {v0, v1}, Lcom/moji/requestcore/method/POST_JSON;-><init>(Lcom/moji/requestcore/encrypt/IEncryptParams;)V
|
|
|
|
return-object v0
|
|
.end method
|