Files
luma/Sources/LumaCore/Models/Author.swift
Ole André Vadla Ravnås d8e64ddc6f core: Extract Author into shared model
Will be reused by mission and address-note attribution.
2026-05-18 00:25:58 +02:00

20 lines
427 B
Swift

import Foundation
public struct Author: Codable, Hashable, Sendable {
public let id: String
public let name: String
public let avatarURL: String
public init(id: String, name: String, avatarURL: String) {
self.id = id
self.name = name
self.avatarURL = avatarURL
}
enum CodingKeys: String, CodingKey {
case id
case name
case avatarURL = "avatar"
}
}