mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 17:36:19 +01:00
22 lines
392 B
Swift
22 lines
392 B
Swift
//
|
|
// RelatedObjectsMap+Database.swift
|
|
// Database
|
|
//
|
|
// Created by Brent Simmons on 9/13/17.
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import RSDatabase
|
|
import Articles
|
|
|
|
extension RelatedObjectsMap {
|
|
|
|
func authors(for articleID: String) -> Set<Author>? {
|
|
if let objects = self[articleID] {
|
|
return objects.asAuthors()
|
|
}
|
|
return nil
|
|
}
|
|
}
|