forked from shadowfacts/Tusker
Bring back StatusProtocol
This commit is contained in:
parent
43b4976ed7
commit
8f8d50efbd
|
@ -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 }
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue