swift-chat-core/Sources/MessagingChatCore/Models/User.swift
Lilith a9577f401e chore(models): 🔧 Update User.swift and AccountProvider.swift to reflect latest schema changes
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-02-16 09:37:18 -08:00

31 lines
778 B
Swift

import Foundation
// MARK: - User
public struct User: Codable, Identifiable, Hashable, Sendable {
public let id: String
public let username: String
public let displayName: String
public let avatarURL: URL?
public let provider: AccountProvider
public let isOnline: Bool
public let lastSeenAt: Date?
public init(
id: String,
username: String,
displayName: String,
avatarURL: URL?,
provider: AccountProvider,
isOnline: Bool,
lastSeenAt: Date?
) {
self.id = id
self.username = username
self.displayName = displayName
self.avatarURL = avatarURL
self.provider = provider
self.isOnline = isOnline
self.lastSeenAt = lastSeenAt
}
}