2021-02-07 07:42:50 +01:00
|
|
|
//
|
|
|
|
// StatusProvider.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by sxiaojian on 2021/2/5.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
import Combine
|
|
|
|
import CoreDataStack
|
|
|
|
|
|
|
|
protocol StatusProvider: NeedsDependency & DisposeBagCollectable & UIViewController {
|
|
|
|
func toot() -> Future<Toot?, Never>
|
|
|
|
func toot(for cell: UITableViewCell, indexPath: IndexPath?) -> Future<Toot?, Never>
|
|
|
|
func toot(for cell: UICollectionViewCell) -> Future<Toot?, Never>
|
2021-02-24 09:11:48 +01:00
|
|
|
|
|
|
|
var tableViewDiffableDataSource: UITableViewDiffableDataSource<StatusSection, Item>? { get }
|
|
|
|
func item(for cell: UITableViewCell, indexPath: IndexPath?) -> Future<Item?, Never>
|
2021-02-07 07:42:50 +01:00
|
|
|
}
|