Skip to content
Snippets Groups Projects
Commit 0f945331 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Refactor

parent 19b8f3ac
No related branches found
No related tags found
1 merge request!3Bindings models wrapper
import Foundation import Foundation
public struct Identity: Equatable, Codable { public struct Identity: Equatable {
enum CodingKeys: String, CodingKey {
case id = "ID"
case rsaPrivatePem = "RSAPrivatePem"
case salt = "Salt"
case dhKeyPrivate = "DHKeyPrivate"
}
public init( public init(
id: Data, id: Data,
rsaPrivatePem: Data, rsaPrivatePem: Data,
...@@ -25,3 +18,12 @@ public struct Identity: Equatable, Codable { ...@@ -25,3 +18,12 @@ public struct Identity: Equatable, Codable {
public var salt: Data public var salt: Data
public var dhKeyPrivate: Data public var dhKeyPrivate: Data
} }
extension Identity: Codable {
enum CodingKeys: String, CodingKey {
case id = "ID"
case rsaPrivatePem = "RSAPrivatePem"
case salt = "Salt"
case dhKeyPrivate = "DHKeyPrivate"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment