21 lines
554 B
Swift
Raw Normal View History

public extension NotificationFeed {
2024-12-22 16:24:48 +00:00
struct UserInfo: Hashable, Sendable {
public let avatar: User.Avatar
public let username: String
public let userId: Int
public init(avatar: User.Avatar, username: String, userId: Int) {
self.avatar = avatar
self.username = username
self.userId = userId
}
}
}
extension NotificationFeed.UserInfo {
struct UsernameMapEntryCodingData: Decodable {
let name: String
let avatar: User.Avatar.CodingData
}
}