mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 23:00:32 +05:30
19 lines
353 B
Swift
19 lines
353 B
Swift
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
|
|
}
|
|
}
|