C.smali
.class public Lcom/sandboxol/blockymods/view/fragment/partyhall/C;
.super Ljava/lang/Object;
.source "PartyHallRepository.java"
# instance fields
.field private a:Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;
.field private b:Landroid/content/Context;
.field private c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
.field private d:Z
.field private e:Z
.field private f:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyItem;",
">;"
}
.end annotation
.end field
.field private g:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->d:Z
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->e:Z
.line 4
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->f:Ljava/util/List;
.line 5
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->g:Ljava/util/Map;
.line 6
iput-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->b:Landroid/content/Context;
return-void
.end method
.method static synthetic a(Lcom/sandboxol/blockymods/view/fragment/partyhall/C;)Ljava/util/List;
.registers 1
.line 1
iget-object p0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->f:Ljava/util/List;
return-object p0
.end method
.method private a(Landroid/content/Context;ZLcom/sandboxol/common/interfaces/OnDataListener;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Z",
"Lcom/sandboxol/common/interfaces/OnDataListener<",
"Ljava/util/List<",
"Lcom/sandboxol/center/entity/AllGameIdInfo;",
">;>;)V"
}
.end annotation
.line 46
new-instance v0, Lcom/sandboxol/blockymods/view/fragment/partyhall/A;
invoke-direct {v0, p0, p3, p2, p1}, Lcom/sandboxol/blockymods/view/fragment/partyhall/A;-><init>(Lcom/sandboxol/blockymods/view/fragment/partyhall/C;Lcom/sandboxol/common/interfaces/OnDataListener;ZLandroid/content/Context;)V
invoke-static {p1, v0}, Lcom/sandboxol/center/web/GameApi;->getAllGameIdInfo(Landroid/content/Context;Lcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method private a(Ljava/lang/String;)V
.registers 6
const-string v0, ":"
.line 15
invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object p1
.line 16
iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
if-nez v0, :cond_3d
.line 17
invoke-virtual {p0}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a()V
const/4 v0, 0x0
.line 18
aget-object v0, p1, v0
const/4 v1, 0x1
aget-object p1, p1, v1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
move-result p1
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v1
iget-object v1, v1, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;
invoke-virtual {v1}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Long;
invoke-virtual {v1}, Ljava/lang/Long;->longValue()J
move-result-wide v1
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v3
iget-object v3, v3, Lcom/sandboxol/center/entity/AccountCenter;->token:Landroidx/databinding/ObservableField;
invoke-virtual {v3}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
invoke-static {v0, p1, v1, v2, v3}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;->newInstance(Ljava/lang/String;IJLjava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
move-result-object p1
iput-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
:cond_3d
return-void
.end method
.method static synthetic a(Lcom/sandboxol/blockymods/view/fragment/partyhall/C;Z)Z
.registers 2
.line 2
iput-boolean p1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->e:Z
return p1
.end method
.method private b(Landroid/content/Context;Lcom/sandboxol/center/entity/PartyAuthInfo;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;Lrx/functions/Action1;)V
.registers 13
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/center/entity/PartyAuthInfo;",
"Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;",
"Lrx/functions/Action1<",
"Ljava/util/List<",
"Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyItem;",
">;>;)V"
}
.end annotation
.line 3
iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
if-eqz v0, :cond_12
.line 4
new-instance v7, Lcom/sandboxol/blockymods/view/fragment/partyhall/z;
move-object v1, v7
move-object v2, p0
move-object v3, p1
move-object v4, p2
move-object v5, p3
move-object v6, p4
invoke-direct/range {v1 .. v6}, Lcom/sandboxol/blockymods/view/fragment/partyhall/z;-><init>(Lcom/sandboxol/blockymods/view/fragment/partyhall/C;Landroid/content/Context;Lcom/sandboxol/center/entity/PartyAuthInfo;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;Lrx/functions/Action1;)V
invoke-virtual {v0, v7}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;->setPartyListListener(Lcom/sandboxol/center/router/moduleInfo/game/team/listener/IPartyListListener;)V
:cond_12
return-void
.end method
.method static synthetic b(Lcom/sandboxol/blockymods/view/fragment/partyhall/C;)Z
.registers 1
.line 1
iget-boolean p0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->e:Z
return p0
.end method
# virtual methods
.method a(Ljava/util/List;)Ljava/lang/String;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyItem;",
">;)",
"Ljava/lang/String;"
}
.end annotation
.line 49
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
.line 50
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, "\u4e2a\u3002"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 51
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_15
:goto_15
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_43
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyItem;
.line 52
invoke-virtual {v1}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyItem;->getTeamMembersList()Ljava/util/List;
move-result-object v2
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
if-lez v2, :cond_15
.line 53
invoke-virtual {v1}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyItem;->getTeamMembersList()Ljava/util/List;
move-result-object v1
const/4 v2, 0x0
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember;
invoke-virtual {v1}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/TeamMember;->getUsername()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ","
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_15
.line 54
:cond_43
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
return-object p1
.end method
.method protected a()V
.registers 2
const/4 v0, 0x1
.line 48
iput-boolean v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->e:Z
return-void
.end method
.method public a(Landroid/content/Context;Lcom/sandboxol/center/entity/PartyAuthInfo;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;Lrx/functions/Action1;)V
.registers 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/center/entity/PartyAuthInfo;",
"Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;",
"Lrx/functions/Action1<",
"Ljava/util/List<",
"Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyItem;",
">;>;)V"
}
.end annotation
.line 19
iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
if-eqz v0, :cond_35
.line 20
invoke-virtual {p0}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a()V
.line 21
iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
invoke-virtual {v0}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;->isDisConnect()Z
move-result v0
if-eqz v0, :cond_18
.line 22
new-instance p2, Lcom/sandboxol/blockymods/view/fragment/partyhall/h;
invoke-direct {p2, p0, p1, p3, p4}, Lcom/sandboxol/blockymods/view/fragment/partyhall/h;-><init>(Lcom/sandboxol/blockymods/view/fragment/partyhall/C;Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;Lrx/functions/Action1;)V
invoke-virtual {p0, p1, p2}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->b(Landroid/content/Context;Lcom/sandboxol/common/interfaces/OnDataListener;)V
goto :goto_35
.line 23
:cond_18
iget-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
const/16 v0, 0x14
.line 24
invoke-virtual {p2}, Lcom/sandboxol/center/entity/PartyAuthInfo;->getRegion()I
move-result v1
.line 25
invoke-virtual {p3}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;->getSelectLang()Ljava/lang/String;
move-result-object v2
.line 26
invoke-virtual {p3}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;->getSelectGameType()Ljava/lang/String;
move-result-object v3
.line 27
invoke-virtual {p3}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;->getRequestType()Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/RequestType;
move-result-object v4
const-string v5, ""
.line 28
invoke-static/range {v0 .. v5}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/GRPCUtils;->createPartyList(IILjava/lang/String;Ljava/lang/String;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/RequestType;Ljava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;
move-result-object p2
invoke-virtual {p1, p2}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;->connectPartyList(Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;)V
:cond_35
:goto_35
return-void
.end method
.method public synthetic a(Landroid/content/Context;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;Lrx/functions/Action1;Lcom/sandboxol/center/entity/PartyAuthInfo;)V
.registers 11
const/4 v0, 0x0
.line 29
iput-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
.line 30
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;->destroyTeamManagerClient()V
.line 31
invoke-virtual {p4}, Lcom/sandboxol/center/entity/PartyAuthInfo;->getPartyService()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a(Ljava/lang/String;)V
.line 32
invoke-direct {p0, p1, p4, p2, p3}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->b(Landroid/content/Context;Lcom/sandboxol/center/entity/PartyAuthInfo;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;Lrx/functions/Action1;)V
.line 33
iget-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
.line 34
invoke-virtual {p4}, Lcom/sandboxol/center/entity/PartyAuthInfo;->getRegion()I
move-result v1
.line 35
invoke-virtual {p2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;->getSelectLang()Ljava/lang/String;
move-result-object v2
.line 36
invoke-virtual {p2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;->getSelectGameType()Ljava/lang/String;
move-result-object v3
.line 37
invoke-virtual {p2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;->getRequestType()Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/RequestType;
move-result-object v4
const/16 v0, 0x14
const-string v5, ""
.line 38
invoke-static/range {v0 .. v5}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/GRPCUtils;->createPartyList(IILjava/lang/String;Ljava/lang/String;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/RequestType;Ljava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;
move-result-object p2
invoke-virtual {p1, p2}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;->connectPartyList(Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;)V
return-void
.end method
.method public a(Landroid/content/Context;Lcom/sandboxol/common/interfaces/OnDataListener;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/interfaces/OnDataListener<",
"Ljava/util/List<",
"Lcom/sandboxol/center/entity/AllGameIdInfo;",
">;>;)V"
}
.end annotation
if-eqz p1, :cond_3a
.line 39
invoke-static {}, Lcom/sandboxol/center/utils/AppSharedUtils;->newInstance()Lcom/sandboxol/center/utils/AppSharedUtils;
move-result-object v0
invoke-virtual {v0}, Lcom/sandboxol/center/utils/AppSharedUtils;->getAllGameIdInfo()Ljava/util/List;
move-result-object v0
.line 40
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-nez v1, :cond_36
if-nez p2, :cond_31
.line 41
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
.line 42
new-instance v2, Lcom/google/gson/j;
invoke-direct {v2}, Lcom/google/gson/j;-><init>()V
invoke-virtual {v2, v0}, Lcom/google/gson/j;->a(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v2, "party.create.all.game.id.info"
invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 43
const-class v0, Lcom/sandboxol/blockymods/view/fragment/partycreate/PartyCreateFragment;
const v2, 0x7f1209d5
invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v2
invoke-static {p1, v0, v2, v1}, Lcom/sandboxol/center/utils/TemplateUtils;->startTemplate(Landroid/content/Context;Ljava/lang/Class;Ljava/lang/String;Landroid/os/Bundle;)V
:cond_31
const/4 v0, 0x0
.line 44
invoke-direct {p0, p1, v0, p2}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a(Landroid/content/Context;ZLcom/sandboxol/common/interfaces/OnDataListener;)V
goto :goto_3a
:cond_36
const/4 v0, 0x1
.line 45
invoke-direct {p0, p1, v0, p2}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a(Landroid/content/Context;ZLcom/sandboxol/common/interfaces/OnDataListener;)V
:cond_3a
:goto_3a
return-void
.end method
.method protected a(Ljava/lang/String;Ljava/lang/String;)V
.registers 4
.line 8
invoke-virtual {p0}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a()V
.line 9
invoke-static {}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;->newBuilder()Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest$Builder;
move-result-object v0
.line 10
invoke-virtual {v0, p1}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest$Builder;->setSelectLang(Ljava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest$Builder;
move-result-object p1
.line 11
invoke-virtual {p1, p2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest$Builder;->setSelectGameType(Ljava/lang/String;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest$Builder;
move-result-object p1
sget-object p2, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/RequestType;->LIST:Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/RequestType;
.line 12
invoke-virtual {p1, p2}, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest$Builder;->setRequestType(Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/RequestType;)Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest$Builder;
move-result-object p1
.line 13
invoke-virtual {p1}, Lcom/google/protobuf/GeneratedMessageLite$a;->build()Lcom/google/protobuf/GeneratedMessageLite;
move-result-object p1
check-cast p1, Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;
.line 14
iput-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a:Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;
return-void
.end method
.method protected a(Ljava/lang/String;Ljava/lang/String;Lrx/functions/Action1;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Lrx/functions/Action1<",
"Ljava/util/List<",
"Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyItem;",
">;>;)V"
}
.end annotation
.line 3
invoke-virtual {p0, p1, p2}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a(Ljava/lang/String;Ljava/lang/String;)V
.line 4
iget-object p1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->b:Landroid/content/Context;
new-instance p2, Lcom/sandboxol/blockymods/view/fragment/partyhall/i;
invoke-direct {p2, p0, p3}, Lcom/sandboxol/blockymods/view/fragment/partyhall/i;-><init>(Lcom/sandboxol/blockymods/view/fragment/partyhall/C;Lrx/functions/Action1;)V
invoke-virtual {p0, p1, p2}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->b(Landroid/content/Context;Lcom/sandboxol/common/interfaces/OnDataListener;)V
return-void
.end method
.method public synthetic a(Lrx/functions/Action1;Lcom/sandboxol/center/entity/PartyAuthInfo;)V
.registers 5
.line 5
invoke-virtual {p2}, Lcom/sandboxol/center/entity/PartyAuthInfo;->getPartyService()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a(Ljava/lang/String;)V
.line 6
iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->b:Landroid/content/Context;
iget-object v1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a:Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;
invoke-direct {p0, v0, p2, v1, p1}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->b(Landroid/content/Context;Lcom/sandboxol/center/entity/PartyAuthInfo;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;Lrx/functions/Action1;)V
.line 7
iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->b:Landroid/content/Context;
iget-object v1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a:Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;
invoke-virtual {p0, v0, p2, v1, p1}, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->a(Landroid/content/Context;Lcom/sandboxol/center/entity/PartyAuthInfo;Lcom/sandboxol/center/router/moduleInfo/game/team/teammgr/PartyListRequest;Lrx/functions/Action1;)V
return-void
.end method
.method public a(Z)V
.registers 2
.line 47
iput-boolean p1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->d:Z
return-void
.end method
.method public b()V
.registers 6
.line 5
iget-object v0, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
if-eqz v0, :cond_2f
const/4 v1, 0x0
.line 6
:try_start_5
invoke-virtual {v0}, Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;->shutDownPartList()V
:try_end_8
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_8} :catch_d
.catchall {:try_start_5 .. :try_end_8} :catchall_b
.line 7
:goto_8
iput-object v1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
goto :goto_2f
:catchall_b
move-exception v0
goto :goto_2c
:catch_d
move-exception v0
:try_start_e
const-string v2, "PartyHallRepo"
.line 8
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "shutdown party error: "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 9
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_2b
.catchall {:try_start_e .. :try_end_2b} :catchall_b
goto :goto_8
.line 10
:goto_2c
iput-object v1, p0, Lcom/sandboxol/blockymods/view/fragment/partyhall/C;->c:Lcom/sandboxol/center/router/moduleInfo/game/team/util/PartyManagerClient;
.line 11
throw v0
:cond_2f
:goto_2f
return-void
.end method
.method public b(Landroid/content/Context;Lcom/sandboxol/common/interfaces/OnDataListener;)V
.registers 11
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/sandboxol/common/interfaces/OnDataListener<",
"Lcom/sandboxol/center/entity/PartyAuthInfo;",
">;)V"
}
.end annotation
.line 2
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v0
iget-object v0, v0, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;
invoke-virtual {v0}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Long;
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v3
new-instance v7, Lcom/sandboxol/blockymods/view/fragment/partyhall/y;
invoke-direct {v7, p0, p2, p1}, Lcom/sandboxol/blockymods/view/fragment/partyhall/y;-><init>(Lcom/sandboxol/blockymods/view/fragment/partyhall/C;Lcom/sandboxol/common/interfaces/OnDataListener;Landroid/content/Context;)V
const/4 v2, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
move-object v1, p1
invoke-static/range {v1 .. v7}, Lcom/sandboxol/imchat/web/ChatGameApi;->getPartyAuthTest(Landroid/content/Context;ZJLjava/lang/String;ZLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method