Skip to content

Commit 5f41347

Browse files
committed
Fix CI issue - Re-did bootstrap to pick up new ZAP, and regen_all. Updated ChipStructs.java which was different in CI
1 parent 89dd0b8 commit 5f41347

File tree

1 file changed

+58
-58
lines changed

1 file changed

+58
-58
lines changed

src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java

+58-58
Original file line numberDiff line numberDiff line change
@@ -7122,124 +7122,124 @@ public String toString() {
71227122
return output.toString();
71237123
}
71247124
}
7125-
public static class CommodityPriceClusterPriceStruct {
7126-
public Long amount;
7127-
public ChipStructs.CommodityPriceClusterCurrencyStruct currency;
7128-
private static final long AMOUNT_ID = 0L;
7129-
private static final long CURRENCY_ID = 1L;
7125+
public static class CommodityPriceClusterCurrencyStruct {
7126+
public Integer currency;
7127+
public Integer decimalPoints;
7128+
private static final long CURRENCY_ID = 0L;
7129+
private static final long DECIMAL_POINTS_ID = 1L;
71307130

7131-
public CommodityPriceClusterPriceStruct(
7132-
Long amount,
7133-
ChipStructs.CommodityPriceClusterCurrencyStruct currency
7131+
public CommodityPriceClusterCurrencyStruct(
7132+
Integer currency,
7133+
Integer decimalPoints
71347134
) {
7135-
this.amount = amount;
71367135
this.currency = currency;
7136+
this.decimalPoints = decimalPoints;
71377137
}
71387138

71397139
public StructType encodeTlv() {
71407140
ArrayList<StructElement> values = new ArrayList<>();
7141-
values.add(new StructElement(AMOUNT_ID, new IntType(amount)));
7142-
values.add(new StructElement(CURRENCY_ID, currency.encodeTlv()));
7141+
values.add(new StructElement(CURRENCY_ID, new UIntType(currency)));
7142+
values.add(new StructElement(DECIMAL_POINTS_ID, new UIntType(decimalPoints)));
71437143

71447144
return new StructType(values);
71457145
}
71467146

7147-
public static CommodityPriceClusterPriceStruct decodeTlv(BaseTLVType tlvValue) {
7147+
public static CommodityPriceClusterCurrencyStruct decodeTlv(BaseTLVType tlvValue) {
71487148
if (tlvValue == null || tlvValue.type() != TLVType.Struct) {
71497149
return null;
71507150
}
7151-
Long amount = null;
7152-
ChipStructs.CommodityPriceClusterCurrencyStruct currency = null;
7151+
Integer currency = null;
7152+
Integer decimalPoints = null;
71537153
for (StructElement element: ((StructType)tlvValue).value()) {
7154-
if (element.contextTagNum() == AMOUNT_ID) {
7155-
if (element.value(BaseTLVType.class).type() == TLVType.Int) {
7156-
IntType castingValue = element.value(IntType.class);
7157-
amount = castingValue.value(Long.class);
7154+
if (element.contextTagNum() == CURRENCY_ID) {
7155+
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
7156+
UIntType castingValue = element.value(UIntType.class);
7157+
currency = castingValue.value(Integer.class);
71587158
}
7159-
} else if (element.contextTagNum() == CURRENCY_ID) {
7160-
if (element.value(BaseTLVType.class).type() == TLVType.Struct) {
7161-
StructType castingValue = element.value(StructType.class);
7162-
currency = ChipStructs.CommodityPriceClusterCurrencyStruct.decodeTlv(castingValue);
7159+
} else if (element.contextTagNum() == DECIMAL_POINTS_ID) {
7160+
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
7161+
UIntType castingValue = element.value(UIntType.class);
7162+
decimalPoints = castingValue.value(Integer.class);
71637163
}
71647164
}
71657165
}
7166-
return new CommodityPriceClusterPriceStruct(
7167-
amount,
7168-
currency
7166+
return new CommodityPriceClusterCurrencyStruct(
7167+
currency,
7168+
decimalPoints
71697169
);
71707170
}
71717171

71727172
@Override
71737173
public String toString() {
71747174
StringBuilder output = new StringBuilder();
7175-
output.append("CommodityPriceClusterPriceStruct {\n");
7176-
output.append("\tamount: ");
7177-
output.append(amount);
7178-
output.append("\n");
7175+
output.append("CommodityPriceClusterCurrencyStruct {\n");
71797176
output.append("\tcurrency: ");
71807177
output.append(currency);
71817178
output.append("\n");
7179+
output.append("\tdecimalPoints: ");
7180+
output.append(decimalPoints);
7181+
output.append("\n");
71827182
output.append("}\n");
71837183
return output.toString();
71847184
}
71857185
}
7186-
public static class CommodityPriceClusterCurrencyStruct {
7187-
public Integer currency;
7188-
public Integer decimalPoints;
7189-
private static final long CURRENCY_ID = 0L;
7190-
private static final long DECIMAL_POINTS_ID = 1L;
7186+
public static class CommodityPriceClusterPriceStruct {
7187+
public Long amount;
7188+
public ChipStructs.CommodityPriceClusterCurrencyStruct currency;
7189+
private static final long AMOUNT_ID = 0L;
7190+
private static final long CURRENCY_ID = 1L;
71917191

7192-
public CommodityPriceClusterCurrencyStruct(
7193-
Integer currency,
7194-
Integer decimalPoints
7192+
public CommodityPriceClusterPriceStruct(
7193+
Long amount,
7194+
ChipStructs.CommodityPriceClusterCurrencyStruct currency
71957195
) {
7196+
this.amount = amount;
71967197
this.currency = currency;
7197-
this.decimalPoints = decimalPoints;
71987198
}
71997199

72007200
public StructType encodeTlv() {
72017201
ArrayList<StructElement> values = new ArrayList<>();
7202-
values.add(new StructElement(CURRENCY_ID, new UIntType(currency)));
7203-
values.add(new StructElement(DECIMAL_POINTS_ID, new UIntType(decimalPoints)));
7202+
values.add(new StructElement(AMOUNT_ID, new IntType(amount)));
7203+
values.add(new StructElement(CURRENCY_ID, currency.encodeTlv()));
72047204

72057205
return new StructType(values);
72067206
}
72077207

7208-
public static CommodityPriceClusterCurrencyStruct decodeTlv(BaseTLVType tlvValue) {
7208+
public static CommodityPriceClusterPriceStruct decodeTlv(BaseTLVType tlvValue) {
72097209
if (tlvValue == null || tlvValue.type() != TLVType.Struct) {
72107210
return null;
72117211
}
7212-
Integer currency = null;
7213-
Integer decimalPoints = null;
7212+
Long amount = null;
7213+
ChipStructs.CommodityPriceClusterCurrencyStruct currency = null;
72147214
for (StructElement element: ((StructType)tlvValue).value()) {
7215-
if (element.contextTagNum() == CURRENCY_ID) {
7216-
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
7217-
UIntType castingValue = element.value(UIntType.class);
7218-
currency = castingValue.value(Integer.class);
7215+
if (element.contextTagNum() == AMOUNT_ID) {
7216+
if (element.value(BaseTLVType.class).type() == TLVType.Int) {
7217+
IntType castingValue = element.value(IntType.class);
7218+
amount = castingValue.value(Long.class);
72197219
}
7220-
} else if (element.contextTagNum() == DECIMAL_POINTS_ID) {
7221-
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
7222-
UIntType castingValue = element.value(UIntType.class);
7223-
decimalPoints = castingValue.value(Integer.class);
7220+
} else if (element.contextTagNum() == CURRENCY_ID) {
7221+
if (element.value(BaseTLVType.class).type() == TLVType.Struct) {
7222+
StructType castingValue = element.value(StructType.class);
7223+
currency = ChipStructs.CommodityPriceClusterCurrencyStruct.decodeTlv(castingValue);
72247224
}
72257225
}
72267226
}
7227-
return new CommodityPriceClusterCurrencyStruct(
7228-
currency,
7229-
decimalPoints
7227+
return new CommodityPriceClusterPriceStruct(
7228+
amount,
7229+
currency
72307230
);
72317231
}
72327232

72337233
@Override
72347234
public String toString() {
72357235
StringBuilder output = new StringBuilder();
7236-
output.append("CommodityPriceClusterCurrencyStruct {\n");
7236+
output.append("CommodityPriceClusterPriceStruct {\n");
7237+
output.append("\tamount: ");
7238+
output.append(amount);
7239+
output.append("\n");
72377240
output.append("\tcurrency: ");
72387241
output.append(currency);
72397242
output.append("\n");
7240-
output.append("\tdecimalPoints: ");
7241-
output.append(decimalPoints);
7242-
output.append("\n");
72437243
output.append("}\n");
72447244
return output.toString();
72457245
}

0 commit comments

Comments
 (0)