28 lines
666 B
Swift
Raw Normal View History

2024-12-13 11:35:30 +00:00
public extension Profile {
2024-12-22 16:24:48 +00:00
struct Content: Hashable, Sendable {
2024-12-13 11:35:30 +00:00
public let elements: Elements
public let numbers: Numbers
public init(elements: Profile.Content.Elements, numbers: Profile.Content.Numbers) {
self.elements = elements
self.numbers = numbers
}
}
}
extension Profile.Content {
struct CodingData: Codable {
let content: Elements.CodingData
let counts: Numbers.CodingData
}
}
extension Profile.Content.CodingData {
var decoded: Profile.Content {
.init(
elements: content.decoded,
numbers: counts.decoded
)
}
}