discord-jadx/app/src/main/java/com/discord/rtcconnection/enums/ThermalStatus.java

51 lines
1.3 KiB
Java

package com.discord.rtcconnection.enums;
import androidx.annotation.RequiresApi;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: ThermalStatus.kt */
@RequiresApi(29)
public enum ThermalStatus {
None(0),
Light(1),
Moderate(2),
Severe(3),
Critical(4),
Emergency(5),
Shutdown(6);
public static final a Companion = new a(null);
private final int value;
/* compiled from: ThermalStatus.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final ThermalStatus a(int i) {
ThermalStatus thermalStatus;
ThermalStatus[] values = ThermalStatus.values();
int i2 = 0;
while (true) {
if (i2 >= 7) {
thermalStatus = null;
break;
}
thermalStatus = values[i2];
if (thermalStatus.getValue() == i) {
break;
}
i2++;
}
return thermalStatus != null ? thermalStatus : ThermalStatus.None;
}
}
private ThermalStatus(int i) {
this.value = i;
}
public final int getValue() {
return this.value;
}
}