com.github.mob41.blapi.dev.hysen.AntiFreezing Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of broadlink-java-api Show documentation
Show all versions of broadlink-java-api Show documentation
A clean, hacked Broadlink API for Java
The newest version!
package com.github.mob41.blapi.dev.hysen;
/**
* Anti-freezing function
*
* 00:anti-freezing function shut down
*
* 01:anti-freezing function open
*
* 00:anti-freezing function shut down
*
*/
public enum AntiFreezing {
SHUT_DOWN((byte) 0x00), //
OPEN((byte) 0x01);
private final byte value;
private AntiFreezing(byte value) {
this.value = value;
}
public byte getValue() {
return value;
}
public static AntiFreezing fromValue(byte val) {
switch (val) {
case 0x00:
return SHUT_DOWN;
case 0x01:
return OPEN;
default:
return SHUT_DOWN;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy