mirror of
https://github.com/Telecominfraproject/wlan-cloud-base.git
synced 2025-10-30 18:08:17 +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;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.telecominfraproject.wlan.core.model.json.JsonDeserializationUtils;
|
||||
|
||||
public enum LedStatus {
|
||||
led_on(1),
|
||||
led_off(2),
|
||||
led_blink(3),
|
||||
UNKNOWN(-1);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
led_on,
|
||||
led_off,
|
||||
led_blink,
|
||||
UNKNOWN;
|
||||
}
|
||||
Reference in New Issue
Block a user