mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
Add helper method for creating userInfo for error log notification.
This commit is contained in:
1 parent
4f60441b91
commit
90d599ef8d
1 file changed
+8
@@ -19,4 +19,12 @@ public struct ErrorLogUserInfoKey {
|
||||
public static let sourceName = "sourceName"
|
||||
public static let sourceID = "sourceID" // 0-99 are AccountType raw values. 100 and greater are for other components.
|
||||
public static let errorMessage = "errorMessage"
|
||||
|
||||
public static func userInfo(sourceName: String, sourceID: Int, errorMessage: String) -> [String: Any] {
|
||||
[
|
||||
Self.sourceName: sourceName,
|
||||
Self.sourceID: sourceID,
|
||||
Self.errorMessage: errorMessage
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user