]> git.basschouten.com Git - openhab-addons.git/commitdiff
[freeboxos] Fix command handling for DECT thing type (#17274)
authorlolodomo <lg.hc@free.fr>
Sun, 18 Aug 2024 11:23:19 +0000 (13:23 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Aug 2024 11:23:19 +0000 (13:23 +0200)
Related to comment in #17262

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/api/rest/PhoneManager.java

index 73bac2d0bcaa49a2c10bda3e6ba677b39ca9cc63..067c531e83404e488d4e4d64b556b78e3a757b44 100644 (file)
@@ -20,6 +20,8 @@ import org.eclipse.jdt.annotation.Nullable;
 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 @@ public class PhoneManager extends ConfigurableRest<PhoneManager.Config, PhoneMan
     }
 
     private enum NetworkStatus {
+        @SerializedName("working")
         WORKING,
         UNKNOWN
     }
@@ -47,7 +50,9 @@ public class PhoneManager extends ConfigurableRest<PhoneManager.Config, PhoneMan
     }
 
     public enum Type {
+        @SerializedName("fxs")
         FXS,
+        @SerializedName("dect")
         DECT,
         UNKNOWN
     }