NewEventsBits.swift (805B)
1 // 2 // NewEventsBits.swift 3 // damus 4 // 5 // Created by Daniel D’Aquino on 2023-11-24. 6 // 7 8 import Foundation 9 10 struct NewEventsBits: OptionSet { 11 let rawValue: Int 12 13 static let home = NewEventsBits(rawValue: 1 << 0) 14 static let zaps = NewEventsBits(rawValue: 1 << 1) 15 static let mentions = NewEventsBits(rawValue: 1 << 2) 16 static let reposts = NewEventsBits(rawValue: 1 << 3) 17 static let likes = NewEventsBits(rawValue: 1 << 4) 18 static let search = NewEventsBits(rawValue: 1 << 5) 19 static let dms = NewEventsBits(rawValue: 1 << 6) 20 static let damus_app_notifications = NewEventsBits(rawValue: 1 << 7) 21 22 static let all = NewEventsBits(rawValue: 0xFFFFFFFF) 23 static let notifications: NewEventsBits = [.zaps, .likes, .reposts, .mentions, .damus_app_notifications] 24 }