mirror of
https://github.com/Telecominfraproject/wlan-cloud-base.git
synced 2025-10-31 18:38:01 +00:00
Merge pull request #23 from Telecominfraproject/WIFI-4415
[Wifi 4415] remove unnecessary code
This commit is contained in:
@@ -1,27 +1,9 @@
|
|||||||
|
|
||||||
package com.telecominfraproject.wlan.core.model.equipment;
|
package com.telecominfraproject.wlan.core.model.equipment;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
import com.telecominfraproject.wlan.core.model.json.JsonDeserializationUtils;
|
|
||||||
|
|
||||||
public enum LedStatus {
|
public enum LedStatus {
|
||||||
led_on(1),
|
led_on,
|
||||||
led_off(2),
|
led_off,
|
||||||
led_blink(3),
|
led_blink,
|
||||||
UNKNOWN(-1);
|
UNKNOWN;
|
||||||
|
|
||||||
private final int id;
|
|
||||||
|
|
||||||
LedStatus(int id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public long getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonCreator
|
|
||||||
public static LedStatus getByName(String value) {
|
|
||||||
return JsonDeserializationUtils.deserializEnum(value, LedStatus.class, UNKNOWN);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user