mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
51 lines
1.7 KiB
Swift
51 lines
1.7 KiB
Swift
//
|
|
// HelpArticleCard.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct HelpArticleCard: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Category is the name of the knowledge-base section the article sits in, or empty when it is filed under none. */
|
|
public var category: String?
|
|
/** Excerpt is the short summary the author wrote for listings, or empty. */
|
|
public var excerpt: String?
|
|
/** Slug is the article's stable public identifier and the path segment /v1/help/articles/{slug} addresses it by. */
|
|
public var slug: String?
|
|
/** Title is the article's headline. */
|
|
public var title: String?
|
|
/** UpdatedAt is the unix second the article was last written, in the help center's own store. */
|
|
public var updatedAt: Int64?
|
|
|
|
public init(category: String? = nil, excerpt: String? = nil, slug: String? = nil, title: String? = nil, updatedAt: Int64? = nil) {
|
|
self.category = category
|
|
self.excerpt = excerpt
|
|
self.slug = slug
|
|
self.title = title
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case category
|
|
case excerpt
|
|
case slug
|
|
case title
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(category, forKey: .category)
|
|
try container.encodeIfPresent(excerpt, forKey: .excerpt)
|
|
try container.encodeIfPresent(slug, forKey: .slug)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|