@@ -73,11 +73,12 @@ public StatusNotificationRequest convertRequest(ocpp.cs._2010._08.StatusNotifica
7373
7474 @ Override
7575 public MeterValuesRequest convertRequest (ocpp .cs ._2010 ._08 .MeterValuesRequest request ) {
76- List <MeterValue > values15 = request .getValues ()
77- .stream ()
78- .map (e -> new MeterValue ().withTimestamp (e .getTimestamp ())
79- .withValue (new MeterValue .Value ().withValue (Integer .toString (e .getValue ()))))
80- .collect (Collectors .toList ());
76+ List <MeterValue > values15 =
77+ request .getValues ()
78+ .stream ()
79+ .map (e -> new MeterValue ().withTimestamp (e .getTimestamp ())
80+ .withValue (new MeterValue .Value ().withValue (Integer .toString (e .getValue ()))))
81+ .collect (Collectors .toList ());
8182
8283 return new MeterValuesRequest ()
8384 .withConnectorId (request .getConnectorId ())
@@ -100,7 +101,6 @@ public StartTransactionRequest convertRequest(ocpp.cs._2010._08.StartTransaction
100101 .withTimestamp (request .getTimestamp ());
101102 }
102103
103-
104104 @ Override
105105 public StopTransactionRequest convertRequest (ocpp .cs ._2010 ._08 .StopTransactionRequest request ) {
106106 return new StopTransactionRequest ()
@@ -156,14 +156,14 @@ public DiagnosticsStatusNotificationResponse convertResponse(ocpp.cs._2012._06.D
156156 @ Override
157157 public StartTransactionResponse convertResponse (ocpp .cs ._2012 ._06 .StartTransactionResponse response ) {
158158 return new StartTransactionResponse ()
159- .withIdTagInfo (convertIdTagInfo15to12 (response .getIdTagInfo ()))
159+ .withIdTagInfo (toOcpp12TagInfo (response .getIdTagInfo ()))
160160 .withTransactionId (response .getTransactionId ());
161161 }
162162
163163 @ Override
164164 public StopTransactionResponse convertResponse (ocpp .cs ._2012 ._06 .StopTransactionResponse response ) {
165165 return new StopTransactionResponse ()
166- .withIdTagInfo (convertIdTagInfo15to12 (response .getIdTagInfo ()));
166+ .withIdTagInfo (toOcpp12TagInfo (response .getIdTagInfo ()));
167167 }
168168
169169 @ Override
@@ -175,14 +175,14 @@ public HeartbeatResponse convertResponse(ocpp.cs._2012._06.HeartbeatResponse res
175175 @ Override
176176 public AuthorizeResponse convertResponse (ocpp .cs ._2012 ._06 .AuthorizeResponse response ) {
177177 return new AuthorizeResponse ()
178- .withIdTagInfo (convertIdTagInfo15to12 (response .getIdTagInfo ()));
178+ .withIdTagInfo (toOcpp12TagInfo (response .getIdTagInfo ()));
179179 }
180180
181181 // -------------------------------------------------------------------------
182182 // Helpers
183183 // -------------------------------------------------------------------------
184184
185- private static IdTagInfo convertIdTagInfo15to12 (ocpp .cs ._2012 ._06 .IdTagInfo info15 ) {
185+ private static IdTagInfo toOcpp12TagInfo (ocpp .cs ._2012 ._06 .IdTagInfo info15 ) {
186186 return new IdTagInfo ()
187187 .withExpiryDate (info15 .getExpiryDate ())
188188 .withParentIdTag (info15 .getParentIdTag ())
0 commit comments