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

Add Contact model

parent 9c6d3f2b
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!42Update Bindings
import Foundation
public struct Contact {
public init(
data: Data,
getId: @escaping () throws -> Data,
getPublicKey: @escaping () throws -> Data,
getFacts: @escaping () throws -> [Fact]
) {
self.data = data
self.getId = getId
self.getPublicKey = getPublicKey
self.getFacts = getFacts
}
public var data: Data
public var getId: () throws -> Data
public var getPublicKey: () throws -> Data
public var getFacts: () throws -> [Fact]
}
extension Contact: Equatable {
public static func == (lhs: Contact, rhs: Contact) -> Bool {
lhs.data == rhs.data
}
}
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