-
Notifications
You must be signed in to change notification settings - Fork 42
Enhancements to INetworkManager Interface and NetworkManager Class #130
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
Enhancements to INetworkManager Interface and NetworkManager Class #130
Conversation
- Updated `_updateParameters` to allow toggling `handleRefreshToken` for individual requests. - Enhanced the `send` method to support optional `handleRefreshToken` parameter. - Ensured backward compatibility by defaulting to existing behavior when `handleRefreshToken` is not provided.
- Updated `_updateParameters` to allow toggling `handleRefreshToken` for individual requests. - Enhanced the `send` method to support optional `handleRefreshToken` parameter. - Ensured backward compatibility by defaulting to existing behavior when `handleRefreshToken` is not provided.
- Updated INetworkManager to include a generic parameter for custom parameters. - Modified NetworkManager and its mixins to handle custom parameters. - Enhanced type safety across the network manager implementation. - Updated example usage in json_place_holder_view_model.dart. - Adjusted caching and error handling logic to accommodate new parameterization.
…ptional-parameters-and-refresh-token
…workManagerParameters
…nsistent type parameters
…ameters across tests
|
Migration Note: This PR introduces a breaking change by requiring a second generic parameter
|
VB10
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahmtydn thank you for some coding fixes but i think this changes getting a lot of migration for couple of business project and third param it not useless you can manage extra param in your application side.
Vexana just only handle about network logic.
Thanks again but not need now.
Summary
This pull request introduces several changes and improvements to the Vexana library. Below is a summary of the modifications:
Changes
Pfor enhanced flexibility.Pand added methods for handling custom parameters and refresh tokens.NetworkManagerOperation,NetworkManagerCache,NetworkManagerResponse, and other mixins to support the new generic parameterP.INetworkManagerinterface andNetworkManagerclass changes.Bug Fixes
NetworkManagerCache.NetworkManagerErrorInterceptorrelated to unauthorized requests.Breaking Changes
INetworkManagerinterface now requires two generic parameters.NetworkManagerneed to be updated to include the second generic parameter.Additional Notes
INetworkManager<E, P>interface.Checklist