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