ForgejoKit/Sources/ForgejoKit/Models/IssueComment.swift
Stefan Hausotte 897a8ebedd feat: initial commit
Intitial commit for ForgejoKit, a native Swift library to interact with
the Frogejo API
2026-02-28 20:25:57 +01:00

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"
}
}