mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-17 04:10:52 -06:00
13 lines
523 B
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
|
|
}
|