MovieMapper/SharedModels/MediaFile.swift
jarianc 00d8e072c5 feat: Add Rust UI and backend implementation with project infrastructure
Adds the new Rust-based UI (iced), backend service, shared Swift models,
CI/CD workflows, build scripts, and project documentation.
2026-08-19 21:22:08 -05:00

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