Files
duooomi-ios-sdk/Sources/DuooomiBleSDK/DuooomiBleConfig.swift
2026-04-10 16:15:53 +08:00

30 lines
974 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Foundation
/// SDK
public struct DuooomiBleConfig: Sendable {
/// API
public let apiHost: URL
/// API key
public let apiKey: String
/// CDN `/`
public let cdnHost: String
/// "duomi"
public let firmwareIdentifier: String
/// "DRAFT" / "PUBLISHED"
public let firmwareStatus: String
public init(
apiHost: URL = URL(string: "https://api.mixvideo.bowong.cc")!,
apiKey: String,
cdnHost: String = "https://cdn.bowong.cc/",
firmwareIdentifier: String = "duomi",
firmwareStatus: String = "DRAFT"
) {
self.apiHost = apiHost
self.apiKey = apiKey
self.cdnHost = cdnHost.hasSuffix("/") ? cdnHost : cdnHost + "/"
self.firmwareIdentifier = firmwareIdentifier
self.firmwareStatus = firmwareStatus
}
}