Files
swift-sdk/Sources/Hanzo/Models/DataroomRoomDetail.swift
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

64 lines
2.2 KiB
Swift

//
// DataroomRoomDetail.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct DataroomRoomDetail: Sendable, Codable, ParameterConvertible, Hashable {
/** CreatedAt is when the room was created, in unix milliseconds. */
public var createdAt: Int64?
/** Description is the room's description, null when none was given. */
public var description: String?
/** Documents is every document in the room, in the order a visitor sees them. */
public var documents: [DataroomMember]?
/** ID is the room id. */
public var id: String?
/** Name is the room's display name. */
public var name: String?
/** PId is the room's short public identifier. */
public var pId: String?
/** UpdatedAt is when the room last changed, in unix milliseconds. */
public var updatedAt: Int64?
public init(createdAt: Int64? = nil, description: String? = nil, documents: [DataroomMember]? = nil, id: String? = nil, name: String? = nil, pId: String? = nil, updatedAt: Int64? = nil) {
self.createdAt = createdAt
self.description = description
self.documents = documents
self.id = id
self.name = name
self.pId = pId
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case createdAt
case description
case documents
case id
case name
case pId
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(documents, forKey: .documents)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(pId, forKey: .pId)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension DataroomRoomDetail: Identifiable {}