iOS/Sources/Shared/Services/Thread/ThreadClientProtocol.swift

13 lines
523 B
Swift

import Foundation
public protocol ThreadClientProtocol {
func retrieveAllCredentials() async throws -> [ThreadCredential]
func saveCredential(macExtendedAddress: String, operationalDataSet: String) async throws
func saveCredential(macExtendedAddress: String, operationalDataSet: String, completion: @escaping (Error?) -> Void)
func deleteCredential(macExtendedAddress: String, completion: @escaping (Error?) -> Void)
}
public enum ThreadClientServiceError: Error {
case failedToConvertToHexadecimal
}