Files
suixinkan_uikit/suixinkan/Features/TravelAlbum/ViewModels/WiredCameraTransferViewModel.swift
2026-07-07 17:23:31 +08:00

37 lines
1.1 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// WiredCameraTransferViewModel.swift
// suixinkan
//
import Foundation
/// 线 ViewModel UI OTG
final class WiredCameraTransferViewModel {
let albumId: Int
let albumTitle: String
let headerPhone: String
let scenicSpotLabel: String?
let cameraStatusText = "未连接 USB"
let actionButtonText = "等待连接"
let deviceModelName = "设备存储"
let availableStorageText = "-- GB 可用"
let retouchOption = "不修图"
let photoFormatOption = "JPG"
let transferModeOption = "边拍边传"
let tabCounts = [0, 0, 0]
var onShowMessage: ((String) -> Void)?
init(albumId: Int, albumTitle: String, headerPhone: String, scenicSpotLabel: String? = nil) {
self.albumId = albumId
self.albumTitle = albumTitle.isEmpty ? "有线传输" : albumTitle
self.headerPhone = headerPhone
self.scenicSpotLabel = scenicSpotLabel
}
/// UI
func showUIOnlyMessage() {
onShowMessage?("仅同步 UI暂未接入 OTG 传输")
}
}