-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for gateway and sub devices
- Loading branch information
Vitalii Gergel
committed
Jun 17, 2023
1 parent
ee4dfe8
commit 69062a8
Showing
19 changed files
with
1,259 additions
and
550 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
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
49 changes: 49 additions & 0 deletions
49
...ding.tuya/src/main/java/org/smarthomej/binding/tuya/internal/cloud/dto/SubDeviceInfo.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,49 @@ | ||
/** | ||
* Copyright (c) 2021-2023 Contributors to the SmartHome/J 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.smarthomej.binding.tuya.internal.cloud.dto; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Gateway sub device information | ||
* | ||
* @author Vitalii Herhel - Initial contribution | ||
*/ | ||
@NonNullByDefault | ||
public class SubDeviceInfo { | ||
public String id = ""; | ||
public String name = ""; | ||
public String category = ""; | ||
public String icon = ""; | ||
public boolean online = false; | ||
@SerializedName("node_id") | ||
public String nodeId = ""; | ||
@SerializedName("product_id") | ||
public String productId = ""; | ||
@SerializedName("owner_id") | ||
public String ownerId = ""; | ||
@SerializedName("active_time") | ||
public long activeTime = 0; | ||
@SerializedName("update_time") | ||
public long updateTime = 0; | ||
|
||
@Override | ||
public String toString() { | ||
return "SubDeviceInfo{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", category='" + category + '\'' | ||
+ ", icon='" + icon + '\'' + ", online=" + online + ", nodeId='" + nodeId + '\'' + ", productId='" | ||
+ productId + '\'' + ", ownerId='" + ownerId + '\'' + ", activeTime=" + activeTime + ", updateTime=" | ||
+ updateTime + '}'; | ||
} | ||
} |
Oops, something went wrong.