apkfuckery/com.discord/smali/com/discord/stores/StoreNotifications.smali
2019-02-04 21:05:16 +01:00

193 lines
5 KiB
Smali

.class public Lcom/discord/stores/StoreNotifications;
.super Ljava/lang/Object;
.source "StoreNotifications.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/stores/StoreNotifications$Cache;,
Lcom/discord/stores/StoreNotifications$Listeners;,
Lcom/discord/stores/StoreNotifications$Actions;
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getEnabled()Lrx/Observable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable",
"<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.prologue
invoke-static {}, Lcom/discord/stores/StoreNotifications$Cache;->getEnabled()Lcom/discord/utilities/mg_preference/MGPreferenceRx;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/utilities/mg_preference/MGPreferenceRx;->get()Lrx/Observable;
move-result-object v0
invoke-virtual {v0}, Lrx/Observable;->distinctUntilChanged()Lrx/Observable;
move-result-object v0
return-object v0
.end method
.method public static getNotificationLightDisabled()Lrx/Observable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable",
"<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.prologue
invoke-static {}, Lcom/discord/stores/StoreNotifications$Cache;->getNotificationLightDisabled()Lcom/discord/utilities/mg_preference/MGPreferenceRx;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/utilities/mg_preference/MGPreferenceRx;->get()Lrx/Observable;
move-result-object v0
invoke-virtual {v0}, Lrx/Observable;->distinctUntilChanged()Lrx/Observable;
move-result-object v0
return-object v0
.end method
.method public static getNotificationSoundDisabled()Lrx/Observable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable",
"<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.prologue
invoke-static {}, Lcom/discord/stores/StoreNotifications$Cache;->getNotificationSoundDisabled()Lcom/discord/utilities/mg_preference/MGPreferenceRx;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/utilities/mg_preference/MGPreferenceRx;->get()Lrx/Observable;
move-result-object v0
invoke-virtual {v0}, Lrx/Observable;->distinctUntilChanged()Lrx/Observable;
move-result-object v0
return-object v0
.end method
.method public static getNotificationsVibrateDisabled()Lrx/Observable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable",
"<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.prologue
invoke-static {}, Lcom/discord/stores/StoreNotifications$Cache;->getNotificationsVibrateDisabled()Lcom/discord/utilities/mg_preference/MGPreferenceRx;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/utilities/mg_preference/MGPreferenceRx;->get()Lrx/Observable;
move-result-object v0
invoke-virtual {v0}, Lrx/Observable;->distinctUntilChanged()Lrx/Observable;
move-result-object v0
return-object v0
.end method
.method public static getRegistrationToken()Lrx/Observable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.prologue
invoke-static {}, Lcom/discord/stores/StoreNotifications$Cache;->getRegistrationToken()Lcom/discord/utilities/mg_preference/MGPreferenceRx;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/utilities/mg_preference/MGPreferenceRx;->get()Lrx/Observable;
move-result-object v0
invoke-virtual {v0}, Lrx/Observable;->distinctUntilChanged()Lrx/Observable;
move-result-object v0
return-object v0
.end method
.method public static getWakeUpDevice()Lrx/Observable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lrx/Observable",
"<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.prologue
invoke-static {}, Lcom/discord/stores/StoreNotifications$Cache;->getWakeUpDevice()Lcom/discord/utilities/mg_preference/MGPreferenceRx;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/utilities/mg_preference/MGPreferenceRx;->get()Lrx/Observable;
move-result-object v0
invoke-virtual {v0}, Lrx/Observable;->distinctUntilChanged()Lrx/Observable;
move-result-object v0
return-object v0
.end method