forked from openhab/openhab-addons
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[miio] jsonify command handling (openhab#7361)
* Allow for more flexible parameters setting. * Prep to use gson to write database files (for future unsupported handler) * Apply eclipse formatter to all json db files * Lower log level during initiation https://community.openhab.org/t/xiaomi-robot-vacuum-binding/31317/1380 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> Signed-off-by: Eugen Freiter <freiter@gmx.de>
- Loading branch information
Showing
32 changed files
with
921 additions
and
810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoInfoDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* Copyright (c) 2010-2020 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.miio.internal; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Mapping properties from json for miio info response | ||
* | ||
* @author Marcel Verpaalen - Initial contribution | ||
*/ | ||
public class MiIoInfoDTO { | ||
@SerializedName("life") | ||
@Expose | ||
public Integer life; | ||
@SerializedName("cfg_time") | ||
@Expose | ||
public Integer cfgTime; | ||
@SerializedName("token") | ||
@Expose | ||
public String token; | ||
@SerializedName("mac") | ||
@Expose | ||
public String mac; | ||
@SerializedName("fw_ver") | ||
@Expose | ||
public String fwVer; | ||
@SerializedName("hw_ver") | ||
@Expose | ||
public String hwVer; | ||
@SerializedName("uid") | ||
@Expose | ||
public Integer uid; | ||
@SerializedName("model") | ||
@Expose | ||
public String model; | ||
@SerializedName("wifi_fw_ver") | ||
@Expose | ||
public String wifiFwVer; | ||
@SerializedName("mcu_fw_ver") | ||
@Expose | ||
public String mcuFwVer; | ||
@SerializedName("mmfree") | ||
@Expose | ||
public Integer mmfree; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.