2021-06-27 20:44:35 +00:00
|
|
|
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) {
|
|
|
|
}
|
2021-07-03 23:36:06 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private ThermalStatus(int i) {
|
|
|
|
this.value = i;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final int getValue() {
|
|
|
|
return this.value;
|
|
|
|
}
|
|
|
|
}
|