metatext/ServiceLayer/Sources/ServiceLayer/Services/NotificationService.swift
2020-10-30 00:11:24 -07:00

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
}
}