2024-03-19 18:15:30 +01:00
|
|
|
//
|
|
|
|
// ArticlePathInfo.swift
|
|
|
|
// NetNewsWire
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 3/18/24.
|
|
|
|
// Copyright © 2024 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
struct ArticlePathInfo {
|
|
|
|
|
2024-03-20 07:05:30 +01:00
|
|
|
let accountID: String?
|
|
|
|
let accountName: String?
|
|
|
|
let articleID: String?
|
|
|
|
let feedID: String?
|
2024-03-19 18:15:30 +01:00
|
|
|
|
|
|
|
init?(userInfo: [AnyHashable: Any]) {
|
|
|
|
|
|
|
|
guard let articlePathUserInfo = userInfo[UserInfoKey.articlePath] as? [String: String] else {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-03-20 07:05:30 +01:00
|
|
|
self.accountID = articlePathUserInfo[ArticlePathKey.accountID]
|
|
|
|
self.accountName = articlePathUserInfo[ArticlePathKey.accountName]
|
|
|
|
self.articleID = articlePathUserInfo[ArticlePathKey.articleID]
|
|
|
|
self.feedID = articlePathUserInfo[ArticlePathKey.feedID]
|
2024-03-19 18:15:30 +01:00
|
|
|
}
|
|
|
|
}
|