FriendPublicApi.smali
.class public Lcom/sandboxol/center/web/FriendPublicApi;
.super Ljava/lang/Object;
.source "FriendPublicApi.java"
# static fields
.field private static api:Lcom/sandboxol/center/web/IFriendPublicApi;
# 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/center/web/IFriendPublicApi;
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/center/web/IFriendPublicApi;
sput-object v0, Lcom/sandboxol/center/web/FriendPublicApi;->api:Lcom/sandboxol/center/web/IFriendPublicApi;
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 public static getFriendStatus(JLcom/sandboxol/common/base/web/OnResponseListener;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(J",
"Lcom/sandboxol/common/base/web/OnResponseListener<",
"Ljava/lang/Integer;",
">;)V"
}
.end annotation
.line 1
sget-object v0, Lcom/sandboxol/center/web/FriendPublicApi;->api:Lcom/sandboxol/center/web/IFriendPublicApi;
invoke-interface {v0, p0, p1}, Lcom/sandboxol/center/web/IFriendPublicApi;->getFriendStatus(J)Lrx/Observable;
move-result-object p0
.line 2
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 3
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/common/base/web/HttpSubscriber;
invoke-direct {p1, p2}, Lcom/sandboxol/common/base/web/HttpSubscriber;-><init>(Lcom/sandboxol/common/base/web/OnResponseListener;)V
.line 4
invoke-virtual {p0, p1}, Lrx/Observable;->subscribe(Lrx/Subscriber;)Lrx/Subscription;
return-void
.end method