Adds the new Rust-based UI (iced), backend service, shared Swift models, CI/CD workflows, build scripts, and project documentation.
38 lines
842 B
Swift
38 lines
842 B
Swift
import Foundation
|
|
|
|
struct MediaFile: Identifiable, Codable, Hashable {
|
|
let id: UUID
|
|
let name: String
|
|
let path: String
|
|
let size: Int64
|
|
let modified: Date
|
|
let duration: String
|
|
let quality: String
|
|
let fps: String
|
|
var isFolder: Bool
|
|
var tags: [TagType]
|
|
|
|
init(
|
|
id: UUID = UUID(),
|
|
name: String,
|
|
path: String,
|
|
size: Int64,
|
|
modified: Date,
|
|
duration: String,
|
|
quality: String,
|
|
fps: String,
|
|
isFolder: Bool = false,
|
|
tags: [TagType] = []
|
|
) {
|
|
self.id = id
|
|
self.name = name
|
|
self.path = path
|
|
self.size = size
|
|
self.modified = modified
|
|
self.duration = duration
|
|
self.quality = quality
|
|
self.fps = fps
|
|
self.isFolder = isFolder
|
|
self.tags = tags
|
|
}
|
|
} |