-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from Cidaas/staging
Staging
- Loading branch information
Showing
54 changed files
with
1,767 additions
and
252 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
27 changes: 27 additions & 0 deletions
27
Cidaas/Classes/Core/Helpers/Biometrics/DeviceAuthenticationResponseEntity.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// DeviceAuthenticationResponseEntity.swift | ||
// Cidaas | ||
// | ||
// Created by ganesh on 18/02/19. | ||
// | ||
|
||
import Foundation | ||
|
||
public class DeviceAuthenticationResponseEntity: Codable { | ||
// properties | ||
public var success: Bool = false | ||
public var status: Int32 = 400 | ||
public var message: String = "" | ||
|
||
// Constructors | ||
public init() { | ||
|
||
} | ||
|
||
public required init(from decoder: Decoder) throws { | ||
let container = try decoder.container(keyedBy: CodingKeys.self) | ||
self.success = try container.decodeIfPresent(Bool.self, forKey: .success) ?? false | ||
self.status = try container.decodeIfPresent(Int32.self, forKey: .status) ?? 400 | ||
self.message = try container.decodeIfPresent(String.self, forKey: .message) ?? "" | ||
} | ||
} |
Oops, something went wrong.