discord-jadx/app/src/main/java/com/discord/gateway/GatewaySocket$streamWatch$1...

35 lines
1.4 KiB
Java

package com.discord.gateway;
import c.d.b.a.a;
import com.discord.gateway.GatewaySocket;
import com.discord.gateway.io.Outgoing;
import com.discord.gateway.io.OutgoingPayload;
import com.discord.gateway.opcodes.Opcode;
import com.discord.utilities.logging.Logger;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: GatewaySocket.kt */
public final class GatewaySocket$streamWatch$1 extends o implements Function0<Unit> {
public final /* synthetic */ String $streamKey;
public final /* synthetic */ GatewaySocket this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public GatewaySocket$streamWatch$1(GatewaySocket gatewaySocket, String str) {
super(0);
this.this$0 = gatewaySocket;
this.$streamKey = str;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
GatewaySocket.Companion companion = GatewaySocket.Companion;
Logger access$getLogger$p = GatewaySocket.access$getLogger$p(this.this$0);
StringBuilder L = a.L("Sending STREAM_WATCH: ");
L.append(this.$streamKey);
GatewaySocket.Companion.log$default(companion, access$getLogger$p, L.toString(), false, 2, null);
GatewaySocket.send$default(this.this$0, new Outgoing(Opcode.STREAM_WATCH, new OutgoingPayload.WatchStream(this.$streamKey)), false, null, 6, null);
}
}