Skip to content

Commit

Permalink
Change after merge from upstream and regen-all
Browse files Browse the repository at this point in the history
  • Loading branch information
rbultman committed May 24, 2023
1 parent 334409e commit 0af3c71
Showing 1 changed file with 142 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ public static BaseCluster getCluster(long clusterId) {
if (clusterId == SmokeCoAlarm.ID) {
return new SmokeCoAlarm();
}
if (clusterId == DishwasherAlarm.ID) {
return new DishwasherAlarm();
}
if (clusterId == HepaFilterMonitoring.ID) {
return new HepaFilterMonitoring();
}
Expand Down Expand Up @@ -7728,6 +7731,145 @@ public long getCommandID(String name) throws IllegalArgumentException {
}
}

public static class DishwasherAlarm implements BaseCluster {
public static final long ID = 93L;

public long getID() {
return ID;
}

public enum Attribute {
Mask(0L),
Latch(1L),
State(2L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
AttributeList(65531L),
FeatureMap(65532L),
ClusterRevision(65533L),
;
private final long id;

Attribute(long id) {
this.id = id;
}

public long getID() {
return id;
}

public static Attribute value(long id) throws NoSuchFieldError {
for (Attribute attribute : Attribute.values()) {
if (attribute.getID() == id) {
return attribute;
}
}
throw new NoSuchFieldError();
}
}

public enum Event {
Notify(0L),
;
private final long id;

Event(long id) {
this.id = id;
}

public long getID() {
return id;
}

public static Event value(long id) throws NoSuchFieldError {
for (Event event : Event.values()) {
if (event.getID() == id) {
return event;
}
}
throw new NoSuchFieldError();
}
}

public enum Command {
Reset(0L),
;
private final long id;

Command(long id) {
this.id = id;
}

public long getID() {
return id;
}

public static Command value(long id) throws NoSuchFieldError {
for (Command command : Command.values()) {
if (command.getID() == id) {
return command;
}
}
throw new NoSuchFieldError();
}
}

public enum ResetCommandField {
Alarms(0),
Mask(1),
;
private final int id;

ResetCommandField(int id) {
this.id = id;
}

public int getID() {
return id;
}

public static ResetCommandField value(int id) throws NoSuchFieldError {
for (ResetCommandField field : ResetCommandField.values()) {
if (field.getID() == id) {
return field;
}
}
throw new NoSuchFieldError();
}
}

@Override
public String getAttributeName(long id) throws NoSuchFieldError {
return Attribute.value(id).toString();
}

@Override
public String getEventName(long id) throws NoSuchFieldError {
return Event.value(id).toString();
}

@Override
public String getCommandName(long id) throws NoSuchFieldError {
return Command.value(id).toString();
}

@Override
public long getAttributeID(String name) throws IllegalArgumentException {
return Attribute.valueOf(name).getID();
}

@Override
public long getEventID(String name) throws IllegalArgumentException {
return Event.valueOf(name).getID();
}

@Override
public long getCommandID(String name) throws IllegalArgumentException {
return Command.valueOf(name).getID();
}
}

public static class HepaFilterMonitoring implements BaseCluster {
public static final long ID = 113L;

Expand Down

0 comments on commit 0af3c71

Please sign in to comment.