2021-04-02 12:13:45 +02:00
|
|
|
//
|
|
|
|
// ProfileViewController+UserProvider.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by MainasuK Cirno on 2021-4-1.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import Combine
|
|
|
|
import CoreDataStack
|
2021-04-28 10:18:20 +02:00
|
|
|
import UIKit
|
2021-04-02 12:13:45 +02:00
|
|
|
|
|
|
|
extension ProfileViewController: UserProvider {
|
2021-05-06 12:03:58 +02:00
|
|
|
func mastodonUser(for cell: UITableViewCell?) -> Future<MastodonUser?, Never> {
|
2021-04-28 10:18:20 +02:00
|
|
|
return Future { promise in
|
|
|
|
promise(.success(nil))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-02 12:13:45 +02:00
|
|
|
|
|
|
|
func mastodonUser() -> Future<MastodonUser?, Never> {
|
|
|
|
return Future { promise in
|
|
|
|
promise(.success(self.viewModel.mastodonUser.value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|