Updated typical api response

This commit is contained in:
Pavel Lukandiy 2017-12-07 19:12:29 +03:00
parent c3252b13a4
commit bbf3cd6974
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## 0.1.3
- **Update**: Typical api response keys naming
## 0.1.2
- **Update**: Access modifiers of `ValidationService`

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKitAdditions"
s.version = "0.1.2"
s.version = "0.1.3"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKitAdditions"
s.license = "Apache License, Version 2.0"

View File

@ -34,8 +34,8 @@ public class ApiResponse: ApiResponseProtocol, ImmutableMappable {
public required init(map: Map) throws {
result = try? map.value("result")
errorCode = try map.value("error_code")
errorMessage = try? map.value("error_message")
errorCode = try map.value("errorCode")
errorMessage = try? map.value("errorMessage")
}
}