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.
39 lines
1013 B
Swift
39 lines
1013 B
Swift
//
|
|
// ScheduleInput.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ScheduleInput: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** ID is the campaign id from the path. */
|
|
public var id: String?
|
|
/** ScheduledAt is the unix send time. 0 clears the schedule. */
|
|
public var scheduledAt: Int64?
|
|
|
|
public init(id: String? = nil, scheduledAt: Int64? = nil) {
|
|
self.id = id
|
|
self.scheduledAt = scheduledAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case id
|
|
case scheduledAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(scheduledAt, forKey: .scheduledAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension ScheduleInput: Identifiable {}
|