42 lines
2.4 KiB
Java
42 lines
2.4 KiB
Java
package com.discord.stores;
|
|
|
|
import com.discord.gateway.GatewaySocket;
|
|
import com.discord.models.domain.ModelApplicationStream;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: StoreGatewayConnection.kt */
|
|
public final class StoreGatewayConnection$streamCreate$1 extends o implements Function1<GatewaySocket, Unit> {
|
|
public final /* synthetic */ ModelApplicationStream $newStream;
|
|
public final /* synthetic */ String $preferredRegion;
|
|
public final /* synthetic */ String $streamKey;
|
|
public final /* synthetic */ StoreGatewayConnection this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreGatewayConnection$streamCreate$1(StoreGatewayConnection storeGatewayConnection, String str, ModelApplicationStream modelApplicationStream, String str2) {
|
|
super(1);
|
|
this.this$0 = storeGatewayConnection;
|
|
this.$streamKey = str;
|
|
this.$newStream = modelApplicationStream;
|
|
this.$preferredRegion = str2;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(GatewaySocket gatewaySocket) {
|
|
invoke(gatewaySocket);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(GatewaySocket gatewaySocket) {
|
|
m.checkNotNullParameter(gatewaySocket, "gatewaySocket");
|
|
String activeApplicationStreamKeyInternal$app_productionBetaRelease = StoreGatewayConnection.access$getStream$p(this.this$0).getApplicationStreaming$app_productionBetaRelease().getActiveApplicationStreamKeyInternal$app_productionBetaRelease();
|
|
if (activeApplicationStreamKeyInternal$app_productionBetaRelease != null && (!m.areEqual(activeApplicationStreamKeyInternal$app_productionBetaRelease, this.$streamKey))) {
|
|
this.this$0.streamDelete(activeApplicationStreamKeyInternal$app_productionBetaRelease);
|
|
}
|
|
ModelApplicationStream modelApplicationStream = this.$newStream;
|
|
gatewaySocket.streamCreate(this.$newStream.getType(), this.$newStream.getChannelId(), modelApplicationStream instanceof ModelApplicationStream.GuildStream ? Long.valueOf(((ModelApplicationStream.GuildStream) modelApplicationStream).getGuildId()) : null, this.$preferredRegion);
|
|
}
|
|
}
|