Created
April 16, 2020 18:53
-
-
Save meyusufdemirci/650b3414d5d3960fab052057c4819ea9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RequestModel: NSObject { | |
// MARK: - Properties | |
var path: String { | |
return "" | |
} | |
var parameters: [String: Any?] { | |
return [:] | |
} | |
var headers: [String: String] { | |
return [:] | |
} | |
var method: RequestHTTPMethod { | |
return body.isEmpty ? RequestHTTPMethod.get : RequestHTTPMethod.post | |
} | |
var body: [String: Any?] { | |
return [:] | |
} | |
// (request, response) | |
var isLoggingEnabled: (Bool, Bool) { | |
return (true, true) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment