You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to model the params of my requests as DTOs and used them to populate the params of JSON RPC requests.
For example if I define this DTO:
class PlayerCreationDTO {
String firstName;
String lastName;
}
I would like to do something like this:
PlayerCreationDTO playerCreationDTO = new PlayerCreationDTO();
...
Player player = client.createRequest()
.method("findByInitials")
.id(43121)
.paramsByName(playerCreationDTO)
.returnAs(Player.class)
.execute();
It doens't work because the paramsByName method does not exist (of course).
There exists a params method but it implements params "by-position" and not "by-name".
Is there a way to achieve what I want with the current version of the library?
The text was updated successfully, but these errors were encountered:
I'd like to model the params of my requests as DTOs and used them to populate the params of JSON RPC requests.
For example if I define this DTO:
I would like to do something like this:
It doens't work because the paramsByName method does not exist (of course).
There exists a params method but it implements params "by-position" and not "by-name".
Is there a way to achieve what I want with the current version of the library?
The text was updated successfully, but these errors were encountered: