apkfuckery/com.discord/smali/com/discord/stores/StoreGuilds$Actions.smali

215 lines
5.5 KiB
Smali
Raw Normal View History

2019-02-04 20:05:16 +00:00
.class public Lcom/discord/stores/StoreGuilds$Actions;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/discord/stores/StoreGuilds;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Actions"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-02-04 20:08:30 +00:00
.method static synthetic lambda$null$2(Ljava/lang/String;Ljava/util/List;)V
2019-02-04 20:05:16 +00:00
.locals 1
2019-02-04 20:08:30 +00:00
invoke-static {}, Lcom/discord/stores/StoreStream;->getGatewaySocket()Lcom/discord/stores/StoreGatewayConnection;
2019-02-04 20:05:16 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1, p0}, Lcom/discord/stores/StoreGatewayConnection;->requestGuildMembers(Ljava/util/List;Ljava/lang/String;)Z
2019-02-04 20:05:16 +00:00
return-void
.end method
2019-02-04 20:08:30 +00:00
.method static synthetic lambda$requestMembers$0(ZLjava/lang/String;)Ljava/lang/String;
2019-02-04 20:05:16 +00:00
.locals 3
2019-02-04 20:08:30 +00:00
if-eqz p0, :cond_0
2019-02-04 20:05:16 +00:00
if-eqz p1, :cond_0
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/lang/String;->length()I
2019-02-04 20:05:16 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
const/4 v1, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-le v0, v1, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v2, 0x40
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-ne v0, v2, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object p0
2019-02-04 20:05:16 +00:00
:cond_0
2019-02-04 20:08:30 +00:00
if-nez p0, :cond_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz p1, :cond_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-nez p0, :cond_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_1
const/4 p0, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object p0
2019-02-04 20:05:16 +00:00
.end method
2019-02-04 20:08:30 +00:00
.method static synthetic lambda$requestMembers$1(Ljava/lang/String;)Ljava/lang/Boolean;
2019-02-04 20:05:16 +00:00
.locals 0
if-eqz p0, :cond_0
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Ljava/lang/String;->trim()Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-nez p0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 p0, 0x1
2019-02-04 20:05:16 +00:00
goto :goto_0
:cond_0
2019-02-04 20:08:30 +00:00
const/4 p0, 0x0
2019-02-04 20:05:16 +00:00
:goto_0
invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
2019-02-04 20:08:30 +00:00
move-result-object p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object p0
2019-02-04 20:05:16 +00:00
.end method
2019-02-04 20:08:30 +00:00
.method static synthetic lambda$requestMembers$3(Ljava/lang/String;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
.locals 2
invoke-static {}, Lcom/discord/stores/StoreStream;->getGuildSelected()Lcom/discord/stores/StoreGuildSelected;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreGuildSelected;->getId()Lrx/Observable;
move-result-object v0
2019-02-04 20:08:30 +00:00
sget-object v1, Lcom/discord/stores/-$$Lambda$j29QE8yNDQf-fcslah_eEyYL4sc;->INSTANCE:Lcom/discord/stores/-$$Lambda$j29QE8yNDQf-fcslah_eEyYL4sc;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
new-instance v1, Lcom/discord/stores/-$$Lambda$StoreGuilds$Actions$6hB7WvvaIrRaA1H3uKehjs0ZYIg;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {v1, p0}, Lcom/discord/stores/-$$Lambda$StoreGuilds$Actions$6hB7WvvaIrRaA1H3uKehjs0ZYIg;-><init>(Ljava/lang/String;)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/functions/Action1;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-object p0
2019-02-04 20:05:16 +00:00
.end method
2019-02-04 20:08:30 +00:00
.method public static requestMembers(Lcom/discord/app/AppComponent;Lrx/Observable;Z)V
.locals 3
2019-02-04 20:05:16 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2019-02-04 20:08:30 +00:00
"Lcom/discord/app/AppComponent;",
"Lrx/Observable<",
2019-02-04 20:05:16 +00:00
"Ljava/lang/String;",
">;Z)V"
}
.end annotation
2019-02-04 20:08:30 +00:00
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-wide/16 v1, 0x3e8
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v1, v2, v0}, Lrx/Observable;->i(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
new-instance v0, Lcom/discord/stores/-$$Lambda$StoreGuilds$Actions$IrurxYyWrgYQmM5a5WIkgm9umKY;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {v0, p2}, Lcom/discord/stores/-$$Lambda$StoreGuilds$Actions$IrurxYyWrgYQmM5a5WIkgm9umKY;-><init>(Z)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v0}, Lrx/Observable;->e(Lrx/functions/b;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
sget-object p2, Lcom/discord/stores/-$$Lambda$StoreGuilds$Actions$SPzMhKRrXVYQSg7_1ABCjpXL1N8;->INSTANCE:Lcom/discord/stores/-$$Lambda$StoreGuilds$Actions$SPzMhKRrXVYQSg7_1ABCjpXL1N8;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, p2}, Lrx/Observable;->b(Lrx/functions/b;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:17:36 +00:00
invoke-virtual {p1}, Lrx/Observable;->KD()Lrx/Observable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
sget-object p2, Lcom/discord/stores/-$$Lambda$StoreGuilds$Actions$DePKAZsh1eOde4dafoypu5fukoc;->INSTANCE:Lcom/discord/stores/-$$Lambda$StoreGuilds$Actions$DePKAZsh1eOde4dafoypu5fukoc;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, p2}, Lrx/Observable;->g(Lrx/functions/b;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {}, Lcom/discord/app/g;->dy()Lrx/Observable$Transformer;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, p2}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {p0}, Lcom/discord/app/g;->b(Lcom/discord/app/AppComponent;)Lrx/Observable$Transformer;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, p0}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string p1, "requestGuildMembers"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-static {p1}, Lcom/discord/app/g;->aa(Ljava/lang/String;)Lrx/Observable$Transformer;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, p1}, Lrx/Observable;->a(Lrx/Observable$Transformer;)Lrx/Observable;
2019-02-04 20:05:16 +00:00
return-void
.end method