mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-05-19 08:48:16 +00:00
d1209e6704
Co-authored-by: Jim Dovey <jimdovey@apple.com>
28 lines
648 B
Swift
28 lines
648 B
Swift
import Foundation
|
|
|
|
public struct Filtered: Codable, Equatable, Hashable {
|
|
public let filter: Filter
|
|
public let keywordMatches: [String]?
|
|
}
|
|
|
|
public struct Filter: Codable, Identifiable, Equatable, Hashable {
|
|
public enum Action: String, Codable {
|
|
case warn, hide
|
|
}
|
|
|
|
public enum Context: String, Codable {
|
|
case home, notifications, account, thread
|
|
case pub = "public"
|
|
}
|
|
|
|
public let id: String
|
|
public let title: String
|
|
public let context: [String]
|
|
public let filterAction: Action
|
|
}
|
|
|
|
extension Filtered: Sendable {}
|
|
extension Filter: Sendable {}
|
|
extension Filter.Action: Sendable {}
|
|
extension Filter.Context: Sendable {}
|