FriendApi.smali
.class public Lcom/sandboxol/blockymods/web/FriendApi;
.super Ljava/lang/Object;
.source "FriendApi.java"
# static fields
.field private static final api:Lcom/sandboxol/blockymods/web/IFriendApi;
# direct methods
.method static constructor <clinit>()V
.registers 2
.line 1
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getApp()Lcom/sandboxol/common/base/app/BaseApplication;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/common/base/app/BaseApplication;->getMetaDataBaseUrl()Ljava/lang/String;
move-result-object v0
const-class v1, Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-static {v0, v1}, Lcom/sandboxol/common/retrofit/RetrofitFactory;->httpsCreate(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/sandboxol/blockymods/web/IFriendApi;
sput-object v0, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static synthetic a(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->friendList(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;IILjava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.line 2
invoke-static/range {p0 .. p5}, Lcom/sandboxol/blockymods/web/FriendApi;->friendSearchList(Landroid/content/Context;IILjava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 7
.line 5
invoke-static/range {p0 .. p6}, Lcom/sandboxol/blockymods/web/FriendApi;->friendRecommendation(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 6
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->addToBlacklist(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;JLjava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 5
.line 4
invoke-static {p0, p1, p2, p3, p4}, Lcom/sandboxol/blockymods/web/FriendApi;->friendAddAlias(Landroid/content/Context;JLjava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Lcom/sandboxol/blockymods/entity/FriendRequestAdd;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 3
.line 3
invoke-static {p0, p1, p2}, Lcom/sandboxol/blockymods/web/FriendApi;->friendAdd(Landroid/content/Context;Lcom/sandboxol/blockymods/entity/FriendRequestAdd;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic a(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 7
invoke-static {p0, p1}, Lcom/sandboxol/blockymods/web/FriendApi;->followFriendsList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public static addToBlacklist(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/G;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/G;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_38
.line 3
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->addToBlacklist(J)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_56
.line 8
:cond_38
sget-object p0, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {p0, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->addToBlacklist(J)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_56
return-void
.end method
.method static synthetic b(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->friendRequestsList(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic b(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 2
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->friendAgreeAdd(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic b(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 3
invoke-static {p0, p1}, Lcom/sandboxol/blockymods/web/FriendApi;->friendRecommendation(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic c(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->friendDelete(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic c(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 2
.line 2
invoke-static {p0, p1}, Lcom/sandboxol/blockymods/web/FriendApi;->friendStatus(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic d(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->friendDeleteAlias(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic e(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->friendDetails(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic f(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->friendGamingInfo(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public static followFriendsList(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/common/widget/rv/pagerv/PageData<",
"Lcom/sandboxol/greendao/entity/FriendFollowResponse;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/t;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/blockymods/web/t;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
const/4 v3, 0x0
const/16 v4, 0x14
invoke-interface {v1, v2, v3, v4}, Lcom/sandboxol/blockymods/web/IFriendApi;->followFriendsList(Ljava/lang/String;II)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendAdd(Landroid/content/Context;Lcom/sandboxol/blockymods/entity/FriendRequestAdd;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 5
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/B;
invoke-direct {v0, p0, p1, p2}, Lcom/sandboxol/blockymods/web/B;-><init>(Landroid/content/Context;Lcom/sandboxol/blockymods/entity/FriendRequestAdd;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p2, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_38
.line 3
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendAdd(Lcom/sandboxol/blockymods/entity/FriendRequestAdd;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v1, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v1}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_56
.line 8
:cond_38
sget-object p0, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {p0, p1}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendAdd(Lcom/sandboxol/blockymods/entity/FriendRequestAdd;)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p2, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_56
return-void
.end method
.method public static friendAddAlias(Landroid/content/Context;JLjava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 12
.line 1
new-instance v6, Lcom/sandboxol/blockymods/web/H;
move-object v0, v6
move-object v1, p0
move-wide v2, p1
move-object v4, p3
move-object v5, p4
invoke-direct/range {v0 .. v5}, Lcom/sandboxol/blockymods/web/H;-><init>(Landroid/content/Context;JLjava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p4, v6}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1, p2, p3}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendAddAlias(JLjava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p4, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendAgreeAdd(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/u;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/u;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendAgreeAdd(J)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendDelete(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/y;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/y;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendDelete(J)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendDeleteAlias(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/z;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/z;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendDeleteAlias(J)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendDetails(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"J",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/greendao/entity/Friend;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/C;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/C;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object p0
.line 2
sget-object v0, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v1
invoke-interface {v0, p1, p2, v1}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendDetails(JLjava/lang/String;)Lrx/Observable;
move-result-object p1
.line 3
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p2
invoke-virtual {p1, p2}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p1
.line 4
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p2
invoke-virtual {p1, p2}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p1
new-instance p2, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p2, p3, p0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 5
invoke-virtual {p1, p2}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendGamingInfo(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"J",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/StatusBean;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/v;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/v;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
invoke-interface {v1, v2, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendGamingInfo(Ljava/lang/String;J)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendList(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"II",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/common/widget/rv/pagerv/PageData<",
"Lcom/sandboxol/greendao/entity/Friend;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/s;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/s;-><init>(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendList(II)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
const-wide/16 p1, 0x1
.line 6
invoke-virtual {p0, p1, p2}, Lrx/Observable;->retry(J)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendRecommendation(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 16
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"I",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/Integer;",
"Ljava/lang/String;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/util/List<",
"Lcom/sandboxol/blockymods/entity/RecommendFriendEntity;",
">;>;)V"
}
.end annotation
.line 7
new-instance v8, Lcom/sandboxol/blockymods/web/E;
move-object v0, v8
move-object v1, p0
move v2, p1
move-object v3, p2
move-object v4, p3
move-object v5, p4
move-object v6, p5
move-object v7, p6
invoke-direct/range {v0 .. v7}, Lcom/sandboxol/blockymods/web/E;-><init>(Landroid/content/Context;ILjava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p6, v8}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 8
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface/range {v1 .. v6}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendRecommendation(ILjava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 9
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 11
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;
invoke-direct {p1, p6, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 12
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendRecommendation(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/util/List<",
"Lcom/sandboxol/blockymods/entity/RecommendFriendEntity;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/D;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/blockymods/web/D;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
invoke-interface {v1, v2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendRecommendation(Ljava/lang/String;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpListSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendRefuseAdd(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/A;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/A;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendRefuseAdd(J)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendRequestsList(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"II",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/common/widget/rv/pagerv/PageData<",
"Lcom/sandboxol/blockymods/entity/FriendRequest;",
">;>;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/r;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/r;-><init>(Landroid/content/Context;IILcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
invoke-interface {v1, p1, p2, v2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendRequestsList(IILjava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendSearchList(Landroid/content/Context;IILjava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 14
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"II",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/common/widget/rv/pagerv/PageData<",
"Lcom/sandboxol/greendao/entity/Friend;",
">;>;)V"
}
.end annotation
.line 1
new-instance v7, Lcom/sandboxol/blockymods/web/x;
move-object v0, v7
move-object v1, p0
move v2, p1
move v3, p2
move-object v4, p3
move-object v5, p4
move-object v6, p5
invoke-direct/range {v0 .. v6}, Lcom/sandboxol/blockymods/web/x;-><init>(Landroid/content/Context;IILjava/lang/String;Ljava/lang/String;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p5, v7}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p3, p1, p2, p4}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendSearchList(Ljava/lang/String;IILjava/lang/String;)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;
invoke-direct {p1, p5, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpPageSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method
.method public static friendStatus(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/center/entity/FriendStatus;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/w;
invoke-direct {v0, p0, p1}, Lcom/sandboxol/blockymods/web/w;-><init>(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p1, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
instance-of v1, p0, Lcom/trello/rxlifecycle/a;
if-eqz v1, :cond_3c
.line 3
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v2
invoke-interface {v1, v2}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendStatus(Ljava/lang/String;)Lrx/Observable;
move-result-object v1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object v2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 4
invoke-interface {p0, v2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {v1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 6
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 7
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
goto :goto_5e
.line 8
:cond_3c
sget-object p0, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-static {}, Lcom/sandboxol/common/utils/CommonHelper;->getLanguage()Ljava/lang/String;
move-result-object v1
invoke-interface {p0, v1}, Lcom/sandboxol/blockymods/web/IFriendApi;->friendStatus(Ljava/lang/String;)Lrx/Observable;
move-result-object p0
.line 9
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 10
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object v1
invoke-virtual {p0, v1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance v1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {v1, p1, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 11
invoke-virtual {p0, v1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
:goto_5e
return-void
.end method
.method static synthetic g(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->friendRefuseAdd(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method static synthetic h(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.line 1
invoke-static {p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/FriendApi;->searchFriendById(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method public static searchFriendById(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"J",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Lcom/sandboxol/greendao/entity/Friend;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/sandboxol/blockymods/web/F;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/sandboxol/blockymods/web/F;-><init>(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
invoke-static {p3, v0}, Lcom/sandboxol/common/utils/HttpUtils;->getRetryCommand(Lcom/sandboxol/common/base/web/OnResponseListener;Lrx/functions/Action0;)Lcom/sandboxol/common/command/ReplyCommand;
move-result-object v0
.line 2
sget-object v1, Lcom/sandboxol/blockymods/web/FriendApi;->api:Lcom/sandboxol/blockymods/web/IFriendApi;
invoke-interface {v1, p1, p2}, Lcom/sandboxol/blockymods/web/IFriendApi;->searchFriendById(J)Lrx/Observable;
move-result-object p1
check-cast p0, Lcom/trello/rxlifecycle/a;
sget-object p2, Lcom/trello/rxlifecycle/ActivityEvent;->DESTROY:Lcom/trello/rxlifecycle/ActivityEvent;
.line 3
invoke-interface {p0, p2}, Lcom/trello/rxlifecycle/a;->bindUntilEvent(Lcom/trello/rxlifecycle/ActivityEvent;)Lrx/Observable$Transformer;
move-result-object p0
invoke-virtual {p1, p0}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
move-result-object p0
.line 4
invoke-static {}, Lrx/schedulers/Schedulers;->io()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->subscribeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
.line 5
invoke-static {}, Lrx/android/schedulers/AndroidSchedulers;->mainThread()Lrx/Scheduler;
move-result-object p1
invoke-virtual {p0, p1}, Lrx/Observable;->observeOn(Lrx/Scheduler;)Lrx/Observable;
move-result-object p0
new-instance p1, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;
invoke-direct {p1, p3, v0}, Lcom/sandboxol/center/web/http/AuthTokenHttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;Lcom/sandboxol/common/command/ReplyCommand;)V
.line 6
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method