From 7d3a75fe2be1ec6903bae39783a6a8d5fc1c6eef Mon Sep 17 00:00:00 2001 From: lolodomo Date: Sun, 18 Aug 2024 13:23:19 +0200 Subject: [PATCH] [freeboxos] Fix command handling for DECT thing type (#17274) Related to comment in #17262 Signed-off-by: Laurent Garnier --- .../binding/freeboxos/internal/api/rest/PhoneManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/PhoneManager.java b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/PhoneManager.java index 73bac2d0bcaa4..067c531e83404 100644 --- a/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/PhoneManager.java +++ b/bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/PhoneManager.java @@ -20,6 +20,8 @@ import org.openhab.binding.freeboxos.internal.api.FreeboxException; import org.openhab.binding.freeboxos.internal.api.Response; +import com.google.gson.annotations.SerializedName; + /** * The {@link PhoneManager} is the Java class used to handle api requests related to phone and calls * @@ -38,6 +40,7 @@ protected class StatusResponse extends Response { } private enum NetworkStatus { + @SerializedName("working") WORKING, UNKNOWN } @@ -47,7 +50,9 @@ public static record Config(NetworkStatus network, boolean dectEcoMode, String d } public enum Type { + @SerializedName("fxs") FXS, + @SerializedName("dect") DECT, UNKNOWN }