jellyflood/Shared/Objects/DisplayOrder/BoxSetDisplayOrder.swift

29 lines
735 B
Swift

//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2025 Jellyfin & Jellyfin Contributors
//
import Foundation
enum BoxSetDisplayOrder: String, CaseIterable, Identifiable {
case dateModified = "DateModified"
case sortName = "SortName"
case premiereDate = "PremiereDate"
var id: String { rawValue }
var displayTitle: String {
switch self {
case .dateModified:
return L10n.dateModified
case .sortName:
return L10n.sortName
case .premiereDate:
return L10n.premiereDate
}
}
}