27 行
630 B
Swift
27 行
630 B
Swift
import Foundation
|
|
|
|
public struct SDKConfig: Sendable {
|
|
public let appId: String
|
|
public let appKey: String
|
|
public let appSecret: String
|
|
public let apiBaseURL: URL
|
|
public let imWebSocketURL: URL
|
|
public let debug: Bool
|
|
|
|
public init(
|
|
appId: String,
|
|
appKey: String,
|
|
appSecret: String,
|
|
apiBaseURL: URL,
|
|
imWebSocketURL: URL,
|
|
debug: Bool = false
|
|
) {
|
|
self.appId = appId
|
|
self.appKey = appKey
|
|
self.appSecret = appSecret
|
|
self.apiBaseURL = apiBaseURL
|
|
self.imWebSocketURL = imWebSocketURL
|
|
self.debug = debug
|
|
}
|
|
}
|