mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-15 10:06:03 +00:00
* style: apply SwiftFormat 0.62.1 rules Refs #103202 * ci: enforce deterministic Swift lint Refs #103202 * refactor: keep gateway connect lint-clean Refs #103202 * style: keep iOS typography checks warning-free * ci: route MLX Swift changes through pre-push * fix: preserve native i18n extraction after Swift cleanup * refactor: keep rebased Swift surfaces lint-clean * style: format latest Swift additions * chore: refresh native i18n inventory * style: keep generated Swift formatter-clean * fix: preserve node route invalidation callbacks * fix: keep native translation IDs stable * fix: retain native translation identifiers * fix: preserve translations across Swift source moves
28 lines
857 B
Swift
28 lines
857 B
Swift
public struct OpenClawChatTalkControl {
|
|
public var isEnabled: Bool
|
|
public var isListening: Bool
|
|
public var isSpeaking: Bool
|
|
public var isGatewayConnected: Bool
|
|
public var statusText: String
|
|
public var providerLabel: String
|
|
public var toggle: @MainActor (_ sessionKey: String) -> Void
|
|
|
|
public init(
|
|
isEnabled: Bool,
|
|
isListening: Bool,
|
|
isSpeaking: Bool,
|
|
isGatewayConnected: Bool,
|
|
statusText: String,
|
|
providerLabel: String,
|
|
toggle: @escaping @MainActor (_ sessionKey: String) -> Void)
|
|
{
|
|
self.isEnabled = isEnabled
|
|
self.isListening = isListening
|
|
self.isSpeaking = isSpeaking
|
|
self.isGatewayConnected = isGatewayConnected
|
|
self.statusText = statusText
|
|
self.providerLabel = providerLabel
|
|
self.toggle = toggle
|
|
}
|
|
}
|