2023-01-05 11:21:54 +00:00
|
|
|
import Foundation
|
|
|
|
|
2023-01-22 15:55:03 +00:00
|
|
|
public struct Conversation: Identifiable, Decodable, Hashable, Equatable {
|
2023-01-05 11:21:54 +00:00
|
|
|
public let id: String
|
|
|
|
public let unread: Bool
|
|
|
|
public let lastStatus: Status
|
|
|
|
public let accounts: [Account]
|
2023-01-17 10:36:01 +00:00
|
|
|
|
2023-01-05 11:21:54 +00:00
|
|
|
public static func placeholder() -> Conversation {
|
|
|
|
.init(id: UUID().uuidString, unread: false, lastStatus: .placeholder(), accounts: [.placeholder()])
|
|
|
|
}
|
2023-01-17 10:36:01 +00:00
|
|
|
|
2023-01-05 11:21:54 +00:00
|
|
|
public static func placeholders() -> [Conversation] {
|
|
|
|
[.placeholder(), .placeholder(), .placeholder(), .placeholder(), .placeholder(),
|
|
|
|
.placeholder(), .placeholder(), .placeholder(), .placeholder(), .placeholder()]
|
|
|
|
}
|
|
|
|
}
|