mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-24 05:13:07 +09:00
23 lines
787 B
Swift
23 lines
787 B
Swift
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
public protocol RemoteDevices {
|
|
func replaceRemoteDevices(_ remoteDevices: [RemoteDevice]) -> Success
|
|
}
|
|
|
|
open class RemoteDevice {
|
|
public let id: String?
|
|
public let name: String
|
|
public let type: String?
|
|
public let isCurrentDevice: Bool
|
|
public let lastAccessTime: Timestamp?
|
|
|
|
public init(id: String?, name: String, type: String?, isCurrentDevice: Bool, lastAccessTime: Timestamp?) {
|
|
self.id = id
|
|
self.name = name
|
|
self.type = type
|
|
self.isCurrentDevice = isCurrentDevice
|
|
self.lastAccessTime = lastAccessTime
|
|
}
|
|
}
|