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
shaun-wild
changed the title
Allow public access to ApiRequestParams child constructors
Allow public access to ApiRequestParams subclass constructors/fields
Jul 18, 2022
Thank you for your feature request! It's a pretty large change to the design of the library. We'll have to investigate and assess tradeoffs of this change. We might not be able to get to this soon because of other commitments, marking for the future.
Is your feature request related to a problem? Please describe.
I am using Kotlin and the use of the builders provided on these classes is overly verbose.
Describe the solution you'd like
Make the constructors public, so I can build the objects myself, using Kotlin's Type Safe Builders.
Also, I believe the fields will need to be accessible.
Or even create a Kotlin extensions library with the type-safe builders included.
Describe alternatives you've considered
I've tried creating a wrapper around the builders themselves, but it turned out to be extremely cumbersome.
Additional context
For example, instead of:
I could simply do
But I cannot instantiate the classes myself, as the constructors are private.
The text was updated successfully, but these errors were encountered: