discord-jadx/app/src/main/java/org/webrtc/TurnCustomizer.java

29 lines
753 B
Java

package org.webrtc;
public class TurnCustomizer {
private long nativeTurnCustomizer;
public TurnCustomizer(long j) {
this.nativeTurnCustomizer = j;
}
private void checkTurnCustomizerExists() {
if (this.nativeTurnCustomizer == 0) {
throw new IllegalStateException("TurnCustomizer has been disposed.");
}
}
private static native void nativeFreeTurnCustomizer(long j);
public void dispose() {
checkTurnCustomizerExists();
nativeFreeTurnCustomizer(this.nativeTurnCustomizer);
this.nativeTurnCustomizer = 0;
}
@CalledByNative
public long getNativeTurnCustomizer() {
checkTurnCustomizerExists();
return this.nativeTurnCustomizer;
}
}