PurpleAccountUpdateNotify.swift (569B)
1 // 2 // PurpleAccountUpdateNotify.swift 3 // damus 4 // 5 // Created by Daniel D’Aquino on 2024-01-29. 6 // 7 8 import Foundation 9 10 struct PurpleAccountUpdateNotify: Notify { 11 typealias Payload = DamusPurple.Account 12 var payload: DamusPurple.Account 13 } 14 15 extension NotifyHandler { 16 static var purple_account_update: NotifyHandler<PurpleAccountUpdateNotify> { 17 .init() 18 } 19 } 20 21 extension Notifications { 22 static func purple_account_update(_ result: DamusPurple.Account) -> Notifications<PurpleAccountUpdateNotify> { 23 .init(.init(payload: result)) 24 } 25 }