Dactyloidae/mobile/ios/Shared/RemoteDevices.swift
2026-06-26 21:04:09 -07:00

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
}
}