mirror of
https://github.com/Telecominfraproject/wlan-cloud-base.git
synced 2025-11-01 02:48:07 +00:00
Merge pull request #22 from Telecominfraproject/WIFI-4415
[WIFI-4415] Add Gateway and backend support to turn LED on/off
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user