mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-03 05:59:24 +00:00
25 lines
814 B
Swift
25 lines
814 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Combine
|
|
import DB
|
|
import Foundation
|
|
import Mastodon
|
|
import MastodonAPI
|
|
|
|
public struct NotificationService {
|
|
public let notification: MastodonNotification
|
|
public let navigationService: NavigationService
|
|
private let mastodonAPIClient: MastodonAPIClient
|
|
private let contentDatabase: ContentDatabase
|
|
|
|
init(notification: MastodonNotification, mastodonAPIClient: MastodonAPIClient, contentDatabase: ContentDatabase) {
|
|
self.notification = notification
|
|
self.navigationService = NavigationService(
|
|
mastodonAPIClient: mastodonAPIClient,
|
|
contentDatabase: contentDatabase,
|
|
status: nil)
|
|
self.mastodonAPIClient = mastodonAPIClient
|
|
self.contentDatabase = contentDatabase
|
|
}
|
|
}
|