metatext-app-ios-iphone-ipad/ServiceLayer/Sources/ServiceLayer/Services/ConversationService.swift

28 lines
867 B
Swift
Raw Normal View History

2020-10-29 07:03:45 +01:00
// Copyright © 2020 Metabolist. All rights reserved.
import Combine
import DB
import Foundation
import Mastodon
import MastodonAPI
public struct ConversationService {
public let conversation: Conversation
public let navigationService: NavigationService
private let mastodonAPIClient: MastodonAPIClient
private let contentDatabase: ContentDatabase
init(conversation: Conversation,
environment: AppEnvironment,
mastodonAPIClient: MastodonAPIClient,
contentDatabase: ContentDatabase) {
2020-10-29 07:03:45 +01:00
self.conversation = conversation
self.navigationService = NavigationService(
environment: environment,
2020-10-29 07:03:45 +01:00
mastodonAPIClient: mastodonAPIClient,
contentDatabase: contentDatabase)
self.mastodonAPIClient = mastodonAPIClient
self.contentDatabase = contentDatabase
}
}