-
-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathContactState.swift
More file actions
26 lines (22 loc) · 756 Bytes
/
ContactState.swift
File metadata and controls
26 lines (22 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2010-2026 Contributors to the openHAB project
//
// See the NOTICE file(s) distributed with this work for additional
// information.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0
//
// SPDX-License-Identifier: EPL-2.0
import AppIntents
import Foundation
@available(iOS 17.0, macOS 14.0, watchOS 10.0, *)
enum ContactState: String, AppEnum {
case on = "ON"
case off = "OFF"
static let typeDisplayRepresentation = TypeDisplayRepresentation(name: "Contact State")
static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [
.on: "On",
.off: "Off"
]
}