import Foundation

public struct CommentCountResponse: Codable {
    enum CodingKeys: String, CodingKey {
        case count
    }

    public var count: Int

    public init(count: Int) {
        self.count = count
    }

    init(_ remote: Components.Schemas.CommentCountResponse) throws {
        self.count = remote.count ?? .zero
    }

    init(_ remote: GenAPI.GetCommentCountResponse) {
        self.count = remote.count
    }
}
