metatext/Shared/Services/Status List Services/StatusListService.swift
Justin Mazzocchi 7863866f68
Status contexts
2020-08-19 15:16:03 -07:00

15 lines
431 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Combine
protocol StatusListService {
var statusSections: AnyPublisher<[[Status]], Error> { get }
var contextParent: Status? { get }
func request(maxID: String?, minID: String?) -> AnyPublisher<Void, Error>
func contextService(status: Status) -> ContextService
}
extension StatusListService {
var contextParent: Status? { nil }
}