tin612 / NetworkHelperKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NetworkKitHelper for iOS


Installions


Cocoapods
    pod 'NetworkKitHelper', :git => "https://github.com/tin612/NetworkHelperKit.git"

How to use it

All the method in NetworkHelperKit class has 2 callback method, a successBlock and a failureBlock
For successBlock, it will return a BaseModel with Decoable protocol of Gloss to map your JSON data to code. You can override a BaseModel class and add more properties to map.
For failureBlock, it will return a HTTP Status Code and a BaseErrorModel with Decoable protocol of Gloss to map your JSON data to code. You can override a BaseErrorModel class and add more properties to see more details in errors message of your API calls.

About

License:MIT License


Languages

Language:Swift 95.8%Language:Shell 3.2%Language:Objective-C 0.5%Language:Ruby 0.4%