@@ -4323,30 +4323,25 @@ public static class EnergyEvseClusterEnergyTransferStartedEvent {
4323
4323
public Long sessionID ;
4324
4324
public Integer state ;
4325
4325
public Long maximumCurrent ;
4326
- public Optional <Long > maximumDischargingCurrent ;
4327
4326
private static final long SESSION_I_D_ID = 0L ;
4328
4327
private static final long STATE_ID = 1L ;
4329
4328
private static final long MAXIMUM_CURRENT_ID = 2L ;
4330
- private static final long MAXIMUM_DISCHARGING_CURRENT_ID = 3L ;
4331
4329
4332
4330
public EnergyEvseClusterEnergyTransferStartedEvent (
4333
4331
Long sessionID ,
4334
4332
Integer state ,
4335
- Long maximumCurrent ,
4336
- Optional <Long > maximumDischargingCurrent
4333
+ Long maximumCurrent
4337
4334
) {
4338
4335
this .sessionID = sessionID ;
4339
4336
this .state = state ;
4340
4337
this .maximumCurrent = maximumCurrent ;
4341
- this .maximumDischargingCurrent = maximumDischargingCurrent ;
4342
4338
}
4343
4339
4344
4340
public StructType encodeTlv () {
4345
4341
ArrayList <StructElement > values = new ArrayList <>();
4346
4342
values .add (new StructElement (SESSION_I_D_ID , new UIntType (sessionID )));
4347
4343
values .add (new StructElement (STATE_ID , new UIntType (state )));
4348
4344
values .add (new StructElement (MAXIMUM_CURRENT_ID , new IntType (maximumCurrent )));
4349
- values .add (new StructElement (MAXIMUM_DISCHARGING_CURRENT_ID , maximumDischargingCurrent .<BaseTLVType >map ((nonOptionalmaximumDischargingCurrent ) -> new IntType (nonOptionalmaximumDischargingCurrent )).orElse (new EmptyType ())));
4350
4345
4351
4346
return new StructType (values );
4352
4347
}
@@ -4358,7 +4353,6 @@ public static EnergyEvseClusterEnergyTransferStartedEvent decodeTlv(BaseTLVType
4358
4353
Long sessionID = null ;
4359
4354
Integer state = null ;
4360
4355
Long maximumCurrent = null ;
4361
- Optional <Long > maximumDischargingCurrent = Optional .empty ();
4362
4356
for (StructElement element : ((StructType )tlvValue ).value ()) {
4363
4357
if (element .contextTagNum () == SESSION_I_D_ID ) {
4364
4358
if (element .value (BaseTLVType .class ).type () == TLVType .UInt ) {
@@ -4375,18 +4369,12 @@ public static EnergyEvseClusterEnergyTransferStartedEvent decodeTlv(BaseTLVType
4375
4369
IntType castingValue = element .value (IntType .class );
4376
4370
maximumCurrent = castingValue .value (Long .class );
4377
4371
}
4378
- } else if (element .contextTagNum () == MAXIMUM_DISCHARGING_CURRENT_ID ) {
4379
- if (element .value (BaseTLVType .class ).type () == TLVType .Int ) {
4380
- IntType castingValue = element .value (IntType .class );
4381
- maximumDischargingCurrent = Optional .of (castingValue .value (Long .class ));
4382
- }
4383
4372
}
4384
4373
}
4385
4374
return new EnergyEvseClusterEnergyTransferStartedEvent (
4386
4375
sessionID ,
4387
4376
state ,
4388
- maximumCurrent ,
4389
- maximumDischargingCurrent
4377
+ maximumCurrent
4390
4378
);
4391
4379
}
4392
4380
@@ -4403,9 +4391,6 @@ public String toString() {
4403
4391
output .append ("\t maximumCurrent: " );
4404
4392
output .append (maximumCurrent );
4405
4393
output .append ("\n " );
4406
- output .append ("\t maximumDischargingCurrent: " );
4407
- output .append (maximumDischargingCurrent );
4408
- output .append ("\n " );
4409
4394
output .append ("}\n " );
4410
4395
return output .toString ();
4411
4396
}
@@ -4415,25 +4400,21 @@ public static class EnergyEvseClusterEnergyTransferStoppedEvent {
4415
4400
public Integer state ;
4416
4401
public Integer reason ;
4417
4402
public Long energyTransferred ;
4418
- public Optional <Long > energyDischarged ;
4419
4403
private static final long SESSION_I_D_ID = 0L ;
4420
4404
private static final long STATE_ID = 1L ;
4421
4405
private static final long REASON_ID = 2L ;
4422
4406
private static final long ENERGY_TRANSFERRED_ID = 4L ;
4423
- private static final long ENERGY_DISCHARGED_ID = 5L ;
4424
4407
4425
4408
public EnergyEvseClusterEnergyTransferStoppedEvent (
4426
4409
Long sessionID ,
4427
4410
Integer state ,
4428
4411
Integer reason ,
4429
- Long energyTransferred ,
4430
- Optional <Long > energyDischarged
4412
+ Long energyTransferred
4431
4413
) {
4432
4414
this .sessionID = sessionID ;
4433
4415
this .state = state ;
4434
4416
this .reason = reason ;
4435
4417
this .energyTransferred = energyTransferred ;
4436
- this .energyDischarged = energyDischarged ;
4437
4418
}
4438
4419
4439
4420
public StructType encodeTlv () {
@@ -4442,7 +4423,6 @@ public StructType encodeTlv() {
4442
4423
values .add (new StructElement (STATE_ID , new UIntType (state )));
4443
4424
values .add (new StructElement (REASON_ID , new UIntType (reason )));
4444
4425
values .add (new StructElement (ENERGY_TRANSFERRED_ID , new IntType (energyTransferred )));
4445
- values .add (new StructElement (ENERGY_DISCHARGED_ID , energyDischarged .<BaseTLVType >map ((nonOptionalenergyDischarged ) -> new IntType (nonOptionalenergyDischarged )).orElse (new EmptyType ())));
4446
4426
4447
4427
return new StructType (values );
4448
4428
}
@@ -4455,7 +4435,6 @@ public static EnergyEvseClusterEnergyTransferStoppedEvent decodeTlv(BaseTLVType
4455
4435
Integer state = null ;
4456
4436
Integer reason = null ;
4457
4437
Long energyTransferred = null ;
4458
- Optional <Long > energyDischarged = Optional .empty ();
4459
4438
for (StructElement element : ((StructType )tlvValue ).value ()) {
4460
4439
if (element .contextTagNum () == SESSION_I_D_ID ) {
4461
4440
if (element .value (BaseTLVType .class ).type () == TLVType .UInt ) {
@@ -4477,19 +4456,13 @@ public static EnergyEvseClusterEnergyTransferStoppedEvent decodeTlv(BaseTLVType
4477
4456
IntType castingValue = element .value (IntType .class );
4478
4457
energyTransferred = castingValue .value (Long .class );
4479
4458
}
4480
- } else if (element .contextTagNum () == ENERGY_DISCHARGED_ID ) {
4481
- if (element .value (BaseTLVType .class ).type () == TLVType .Int ) {
4482
- IntType castingValue = element .value (IntType .class );
4483
- energyDischarged = Optional .of (castingValue .value (Long .class ));
4484
- }
4485
4459
}
4486
4460
}
4487
4461
return new EnergyEvseClusterEnergyTransferStoppedEvent (
4488
4462
sessionID ,
4489
4463
state ,
4490
4464
reason ,
4491
- energyTransferred ,
4492
- energyDischarged
4465
+ energyTransferred
4493
4466
);
4494
4467
}
4495
4468
@@ -4509,9 +4482,6 @@ public String toString() {
4509
4482
output .append ("\t energyTransferred: " );
4510
4483
output .append (energyTransferred );
4511
4484
output .append ("\n " );
4512
- output .append ("\t energyDischarged: " );
4513
- output .append (energyDischarged );
4514
- output .append ("\n " );
4515
4485
output .append ("}\n " );
4516
4486
return output .toString ();
4517
4487
}
0 commit comments