Skip to content

Remove SimpleRequestFactory#351

Merged
matth-x merged 4 commits intomainfrom
feature/refactor-request-factory
Aug 5, 2024
Merged

Remove SimpleRequestFactory#351
matth-x merged 4 commits intomainfrom
feature/refactor-request-factory

Conversation

@matth-x
Copy link
Owner

@matth-x matth-x commented Aug 5, 2024

This PR moves the Request factory functions into Request.h/cpp.

The SimpleRequestFactory never fulfilled any purpose other than being a syntactic shortcut for creating Requests. Merging the create Request functions into Request.h/.cpp makes the code cleaner.

In existing integrations, if Requests were created using makeRequest, change the header include statement

#include <MicroOcpp/Core/SimpleRequestFactory.h>

into

#include <MicroOcpp/Core/Request.h>

to keep up with the change.

@matth-x matth-x merged commit 77e88cb into main Aug 5, 2024
@matth-x matth-x deleted the feature/refactor-request-factory branch August 5, 2024 11:45
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.

1 participant