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

Adding all Parameter for ClientCoreProfile factory #28

Merged
merged 6 commits into from
Feb 14, 2018

Conversation

steven-smpct
Copy link
Contributor

Also cleaned up if doesn't connect, it doesn't show the call stack every time

@TVolden
Copy link
Member

TVolden commented Feb 10, 2018

Hi Steven,

Thanks for your PR, it looks good. There's some problems with the CI. I'll investigate later.

  • Thomas

@steven-smpct
Copy link
Contributor Author

Hi Thomas,

I made another commit I would like to add. I implemented client side of Local Auth List

Steven

@TVolden
Copy link
Member

TVolden commented Feb 13, 2018

Hi Steven,

Wow, thanks allot for your contribution.
I'm sorry that I haven't gotten around to look at the CI error. It looks like it isn't building because the changes to the feature profile, which is used by the fake server and client. Maybe overload the method in profile instead of changing it?

Thomas

Copy link
Member

@TVolden TVolden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some fine work, follows the general design/naming and is well tested. I have commented two places that needs to be addressed before I can merge (since it's breaking the build).

@@ -187,11 +187,12 @@ public MeterValuesRequest createMeterValuesRequest(Integer connectorId, MeterVal
* @see StartTransactionRequest
* @see StartTransactionFeature
*/
public StartTransactionRequest createStartTransactionRequest(Integer connectorId, String idTag, Integer meterStart, Calendar timestamp) throws PropertyConstraintException {
public StartTransactionRequest createStartTransactionRequest(Integer connectorId, String idTag, Integer meterStart, int reservationId, Calendar timestamp) throws PropertyConstraintException {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea with the create metodes on the profile, has to help make a request with all the mandatory fields set.
The field reservatopmID wasn't a part of this method, since it's not mandatory.
I'd recommend removing it from this method and setting it on the return object locally.

@@ -223,10 +224,11 @@ public StatusNotificationRequest createStatusNotificationRequest(Integer connect
* @param transactionId required. The identification of the transaction.
* @return an instance of {@link StopTransactionRequest}.
*/
public StopTransactionRequest createStopTransactionRequest(int meterStop, Calendar timestamp, int transactionId) {
public StopTransactionRequest createStopTransactionRequest(int meterStop, Calendar timestamp, Reason reason, int transactionId) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reason wasn't part of the parameters since it's not a mandatory field. See explanation above.

@steven-smpct
Copy link
Contributor Author

Done, hopefully the CI will build now.

@TVolden
Copy link
Member

TVolden commented Feb 14, 2018

Looks like it 😀

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 56.988% when pulling 022caaa on steven-smpct:master into e0a56cd on ChargeTimeEU:master.

@TVolden TVolden merged commit 26bdd8e into ChargeTimeEU:master Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants