Bring back StatusProtocol

This commit is contained in:
Shadowfacts 2022-09-15 21:04:53 -04:00
parent 43b4976ed7
commit 8f8d50efbd
2 changed files with 4 additions and 3 deletions

View File

@ -20,8 +20,9 @@ public protocol StatusProtocol {
var createdAt: Date { get }
var reblogsCount: Int { get }
var favouritesCount: Int { get }
var reblogged: Bool { get }
var favourited: Bool { get }
// pachyderm impl wants Bool, StatusMO wants optional. not sure how to resolve it, but we don't need this currently
// var reblogged: Bool { get }
// var favourited: Bool { get }
var sensitive: Bool { get }
var spoilerText: String { get }
var visibility: Pachyderm.Status.Visibility { get }

View File

@ -8,7 +8,7 @@
import Foundation
public final class Status: /*StatusProtocol,*/ Decodable {
public final class Status: StatusProtocol, Decodable {
public let id: String
public let uri: String
public let url: URL?