- 所有公开 API 改为 completion handler (Result<T, Error>) - 状态通知改为 DuooomiBleSDKDelegate 协议 - 移除 Sendable、@MainActor、AsyncStream、CheckedContinuation - 网络请求改为 URLSession.dataTask 回调 - BLE 通信改为 delegate + 闭包模式 - deployment target 降至 iOS 12.2 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
295 B
Swift
12 lines
295 B
Swift
import Foundation
|
|
|
|
public struct BindingResponse: Codable, Equatable {
|
|
public let type: Int
|
|
/// 设备 SN 码 (14 位)
|
|
public let sn: String
|
|
/// 1 = 成功, 0 = 失败
|
|
public let success: Int
|
|
/// 设备内已存在的文件 key 列表
|
|
public let contents: [String]
|
|
}
|