- Manage central API call from view-model class.
- Create Model Class that get the API call reponse parameters usign Struct.
- Manage different types of response data with Error management.
- Easy manage upload image with multipart form data request.
To use this component in your project you need to perform the below steps:
Steps to Integrate
-
Drag and drop
BaseHelper
andBaseWebClient
folders to your project. -
Add
Alamofire
pod to your project. -
Review the code from the class
FaqResponseModel
for model creation,FaqViewModel
for view-model creation where API call has been implemented. -
Check the calss
ViewController
where the View-Model class object created and implement the call function of view-model to get the data from API and store that data in to view-Model Class.
Note: Make sure that the extension which is used in this component has been added to your project.
Copyright (c) 2020 Bharat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.