mirror of
https://codeberg.org/secana/ForgejoKit.git
synced 2026-06-16 05:13:53 -07:00
25 lines
633 B
Swift
25 lines
633 B
Swift
import Foundation
|
|
|
|
public struct IssueComment: Codable, Identifiable, Sendable {
|
|
public let id: Int
|
|
public let body: String
|
|
public let user: User
|
|
public let createdAt: Date
|
|
public let updatedAt: Date
|
|
|
|
public init(id: Int, body: String, user: User, createdAt: Date, updatedAt: Date) {
|
|
self.id = id
|
|
self.body = body
|
|
self.user = user
|
|
self.createdAt = createdAt
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case id
|
|
case body
|
|
case user
|
|
case createdAt = "created_at"
|
|
case updatedAt = "updated_at"
|
|
}
|
|
}
|