1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-06 01:20:31 +05:30
yattee/Model/StreamType.swift

19 lines
353 B
Swift
Raw Normal View History

2021-06-14 23:35:02 +05:30
import Foundation
enum StreamType: String, Comparable {
case stream, adaptive
private var sortOrder: Int {
switch self {
case .stream:
return 0
case .adaptive:
return 1
}
}
static func < (lhs: StreamType, rhs: StreamType) -> Bool {
lhs.sortOrder < rhs.sortOrder
}
}