Files
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

46 lines
1.5 KiB
Swift

//
// DataroomStats.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct DataroomStats: Sendable, Codable, ParameterConvertible, Hashable {
/** DataroomId is the room these counts are for. */
public var dataroomId: String?
/** Links is the same per-page breakdown for each link into the room. */
public var links: [DataroomLinkStats]?
/** TotalPageViews is the room's page views across every link. */
public var totalPageViews: Int64?
/** TotalViews is the room's viewing sessions across every link. */
public var totalViews: Int64?
public init(dataroomId: String? = nil, links: [DataroomLinkStats]? = nil, totalPageViews: Int64? = nil, totalViews: Int64? = nil) {
self.dataroomId = dataroomId
self.links = links
self.totalPageViews = totalPageViews
self.totalViews = totalViews
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case dataroomId
case links
case totalPageViews
case totalViews
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(dataroomId, forKey: .dataroomId)
try container.encodeIfPresent(links, forKey: .links)
try container.encodeIfPresent(totalPageViews, forKey: .totalPageViews)
try container.encodeIfPresent(totalViews, forKey: .totalViews)
}
}