mirror of
https://github.com/Telecominfraproject/wlan-cloud-base.git
synced 2025-11-02 11:27:58 +00:00
Merged in NETEXP-2959 (pull request #3)
[NETEXP-2959] update LedStatus to pass tests Approved-by: mike.hansen
This commit is contained in:
committed by
Thomas-Leung2021
parent
267fb477a3
commit
e8dd8724fb
@@ -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