.class public final Lcom/discord/stores/StoreMediaNotification; .super Lcom/discord/stores/Store; .source "StoreMediaNotification.kt" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/discord/stores/StoreMediaNotification$NotificationData;, Lcom/discord/stores/StoreMediaNotification$Companion; } .end annotation # static fields .field public static final Companion:Lcom/discord/stores/StoreMediaNotification$Companion; .field public static final NOTIFICATION_DATA_DISCONNECTED:Lcom/discord/stores/StoreMediaNotification$NotificationData; # instance fields .field public final mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings; .field public final notificationDataObservable:Lrx/Observable; .annotation system Ldalvik/annotation/Signature; value = { "Lrx/Observable<", "Lcom/discord/stores/StoreMediaNotification$NotificationData;", ">;" } .end annotation .end field # direct methods .method public static constructor ()V .locals 4 new-instance v0, Lcom/discord/stores/StoreMediaNotification$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lcom/discord/stores/StoreMediaNotification$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lcom/discord/stores/StoreMediaNotification;->Companion:Lcom/discord/stores/StoreMediaNotification$Companion; new-instance v0, Lcom/discord/stores/StoreMediaNotification$NotificationData; new-instance v1, Lcom/discord/rtcconnection/RtcConnection$State$d; const/4 v2, 0x0 invoke-direct {v1, v2}, Lcom/discord/rtcconnection/RtcConnection$State$d;->(Z)V const-string v3, "" invoke-direct {v0, v1, v3, v2, v2}, Lcom/discord/stores/StoreMediaNotification$NotificationData;->(Lcom/discord/rtcconnection/RtcConnection$State;Ljava/lang/String;ZZ)V sput-object v0, Lcom/discord/stores/StoreMediaNotification;->NOTIFICATION_DATA_DISCONNECTED:Lcom/discord/stores/StoreMediaNotification$NotificationData; return-void .end method .method public constructor (Lcom/discord/stores/StoreMediaSettings;Lcom/discord/stores/StoreRtcConnection;)V .locals 1 const/4 v0, 0x0 if-eqz p1, :cond_1 if-eqz p2, :cond_0 invoke-direct {p0}, Lcom/discord/stores/Store;->()V iput-object p1, p0, Lcom/discord/stores/StoreMediaNotification;->mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings; invoke-virtual {p2}, Lcom/discord/stores/StoreRtcConnection;->getConnectionState()Lrx/Observable; move-result-object p1 invoke-virtual {p1}, Lrx/Observable;->a()Lrx/Observable; move-result-object p1 new-instance p2, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$1; invoke-direct {p2, p0}, Lcom/discord/stores/StoreMediaNotification$notificationDataObservable$1;->(Lcom/discord/stores/StoreMediaNotification;)V invoke-virtual {p1, p2}, Lrx/Observable;->k(Lu/l/i;)Lrx/Observable; move-result-object p1 const-string p2, "rtcConnectionStore\n \u2026 }\n }" invoke-static {p1, p2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {p1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable; move-result-object p1 invoke-virtual {p1}, Lrx/Observable;->a()Lrx/Observable; move-result-object p1 iput-object p1, p0, Lcom/discord/stores/StoreMediaNotification;->notificationDataObservable:Lrx/Observable; return-void :cond_0 const-string p1, "rtcConnectionStore" invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V throw v0 :cond_1 const-string p1, "mediaSettingsStore" invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V throw v0 .end method .method public static final synthetic access$getMediaSettingsStore$p(Lcom/discord/stores/StoreMediaNotification;)Lcom/discord/stores/StoreMediaSettings; .locals 0 iget-object p0, p0, Lcom/discord/stores/StoreMediaNotification;->mediaSettingsStore:Lcom/discord/stores/StoreMediaSettings; return-object p0 .end method .method public static final synthetic access$getNOTIFICATION_DATA_DISCONNECTED$cp()Lcom/discord/stores/StoreMediaNotification$NotificationData; .locals 1 sget-object v0, Lcom/discord/stores/StoreMediaNotification;->NOTIFICATION_DATA_DISCONNECTED:Lcom/discord/stores/StoreMediaNotification$NotificationData; return-object v0 .end method # virtual methods .method public init(Landroid/content/Context;)V .locals 10 if-eqz p1, :cond_0 invoke-super {p0, p1}, Lcom/discord/stores/Store;->init(Landroid/content/Context;)V sget-object v0, Lcom/discord/stores/StoreMediaNotification$init$1;->INSTANCE:Lcom/discord/stores/StoreMediaNotification$init$1; invoke-static {v0}, Lcom/discord/utilities/voice/VoiceEngineForegroundService;->setOnDisconnect(Lrx/functions/Action1;)V new-instance v0, Lcom/discord/stores/StoreMediaNotification$init$2; invoke-direct {v0, p0}, Lcom/discord/stores/StoreMediaNotification$init$2;->(Lcom/discord/stores/StoreMediaNotification;)V invoke-static {v0}, Lcom/discord/utilities/voice/VoiceEngineForegroundService;->setOnToggleSelfDeafen(Lrx/functions/Action1;)V new-instance v0, Lcom/discord/stores/StoreMediaNotification$init$3; invoke-direct {v0, p1}, Lcom/discord/stores/StoreMediaNotification$init$3;->(Landroid/content/Context;)V invoke-static {v0}, Lcom/discord/utilities/voice/VoiceEngineForegroundService;->setOnToggleSelfMute(Lrx/functions/Action1;)V new-instance v0, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection; invoke-direct {v0, p1}, Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;->(Landroid/content/Context;)V iget-object v1, p0, Lcom/discord/stores/StoreMediaNotification;->notificationDataObservable:Lrx/Observable; sget-object v2, Le/a/b/k;->a:Le/a/b/k; new-instance v3, Lcom/discord/stores/StoreMediaNotification$init$4; invoke-direct {v3, p1, v0}, Lcom/discord/stores/StoreMediaNotification$init$4;->(Landroid/content/Context;Lcom/discord/utilities/voice/VoiceEngineForegroundService$Connection;)V const-class v4, Lcom/discord/stores/StoreMediaNotification; const/4 v5, 0x0 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 const/16 v9, 0x3c invoke-static/range {v2 .. v9}, Le/a/b/k;->a(Le/a/b/k;Lkotlin/jvm/functions/Function1;Ljava/lang/Class;Lrx/functions/Action1;Lkotlin/jvm/functions/Function1;Landroid/content/Context;Lkotlin/jvm/functions/Function0;I)Lrx/Observable$c; move-result-object p1 invoke-virtual {v1, p1}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable; return-void :cond_0 const-string p1, "context" invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method