Merge pull request #215 from TouchInstinct/fix/api_parameters
Make url and parameters public for ApiRequestParameters
This commit is contained in:
commit
0ff4c685d4
|
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
### 0.9.24
|
||||
- **Fix**: Make `ApiRequestParameters` properties public.
|
||||
|
||||
### 0.9.23
|
||||
- **Add**: Rounding for `Decimal`.
|
||||
- **Add**: `doubleValue` property for `Decimal`.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = "LeadKit"
|
||||
s.version = "0.9.23"
|
||||
s.version = "0.9.24"
|
||||
s.summary = "iOS framework with a bunch of tools for rapid development"
|
||||
s.homepage = "https://github.com/TouchInstinct/LeadKit"
|
||||
s.license = "Apache License, Version 2.0"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.23</string>
|
||||
<string>0.9.24</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.23</string>
|
||||
<string>0.9.24</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.9.23</string>
|
||||
<string>0.9.24</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
|
|
|||
|
|
@ -31,16 +31,16 @@ public struct ApiRequestParameters {
|
|||
///
|
||||
/// - dictionary: dictionary parameter
|
||||
/// - array: array parameter
|
||||
enum RequestParameters {
|
||||
public enum RequestParameters {
|
||||
case dictionary(Parameters)
|
||||
case array([Any])
|
||||
}
|
||||
|
||||
let method: HTTPMethod
|
||||
let url: URLConvertible
|
||||
let parameters: RequestParameters?
|
||||
let encoding: ParameterEncoding
|
||||
let headers: HTTPHeaders?
|
||||
public let url: URLConvertible
|
||||
public let parameters: RequestParameters?
|
||||
public let method: HTTPMethod
|
||||
public let encoding: ParameterEncoding
|
||||
public let headers: HTTPHeaders?
|
||||
|
||||
public init(url: URLConvertible,
|
||||
method: HTTPMethod = .get,
|
||||
|
|
|
|||
Loading…
Reference in New Issue