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.
46 lines
1.4 KiB
Swift
46 lines
1.4 KiB
Swift
//
|
|
// SocialSummary.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SocialSummary: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Accounts is how many accounts the org has connected, in any status. */
|
|
public var accounts: Int64?
|
|
/** Posts is how many posts the org has, in any state. */
|
|
public var posts: Int64?
|
|
/** Published is how many of them have published. */
|
|
public var published: Int64?
|
|
/** Scheduled is how many of them are waiting for their scheduled time. */
|
|
public var scheduled: Int64?
|
|
|
|
public init(accounts: Int64? = nil, posts: Int64? = nil, published: Int64? = nil, scheduled: Int64? = nil) {
|
|
self.accounts = accounts
|
|
self.posts = posts
|
|
self.published = published
|
|
self.scheduled = scheduled
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case accounts
|
|
case posts
|
|
case published
|
|
case scheduled
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(accounts, forKey: .accounts)
|
|
try container.encodeIfPresent(posts, forKey: .posts)
|
|
try container.encodeIfPresent(published, forKey: .published)
|
|
try container.encodeIfPresent(scheduled, forKey: .scheduled)
|
|
}
|
|
}
|
|
|