mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-04-29 03:08:46 +00:00
18 lines
583 B
Swift
18 lines
583 B
Swift
import Foundation
|
|
|
|
public struct Conversation: Identifiable, Decodable {
|
|
public let id: String
|
|
public let unread: Bool
|
|
public let lastStatus: Status
|
|
public let accounts: [Account]
|
|
|
|
public static func placeholder() -> Conversation {
|
|
.init(id: UUID().uuidString, unread: false, lastStatus: .placeholder(), accounts: [.placeholder()])
|
|
}
|
|
|
|
public static func placeholders() -> [Conversation] {
|
|
[.placeholder(), .placeholder(), .placeholder(), .placeholder(), .placeholder(),
|
|
.placeholder(), .placeholder(), .placeholder(), .placeholder(), .placeholder()]
|
|
}
|
|
}
|