Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional attributes to group #46

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
@Root(name = "group")
public class Group {

@Attribute(name = "synchronized", required = false)
private String isSynchronized;
@Attribute(name = "identifier")
private String identifier;
@Attribute(name = "id")
Expand All @@ -38,15 +40,23 @@ public class Group {
private String productName;
@Element(name = "present")
private String present;
@Element(name = "txbusy", required = false)
private String txBusy;
@Element(name = "name")
private String name;
@Element(name = "switch", required = false)
private SwitchState switchState;
@Element(name = "simpleonoff", required = false)
private SimpleOnOffState simpleOnOff;
@Element(name = "powermeter", required = false)
private PowerMeter powerMeter;
@Element(name = "groupinfo", required = false)
private GroupInfo groupInfo;

public boolean isSynchronized() {
return "1".equals(isSynchronized);
}

public String getId() {
return id;
}
Expand All @@ -71,6 +81,10 @@ public String getPresent() {
return present;
}

public boolean isTxBusy() {
return "1".equals(txBusy);
}

public String getName() {
return name;
}
Expand All @@ -79,6 +93,10 @@ public SwitchState getSwitchState() {
return switchState;
}

public SimpleOnOffState getSimpleOnOff() {
return simpleOnOff;
}

public PowerMeter getPowerMeter() {
return powerMeter;
}
Expand Down