Files
swift-sdk/Sources/Hanzo/Models/DataroomLinkStats.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

46 lines
1.4 KiB
Swift

//
// DataroomLinkStats.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct DataroomLinkStats: Sendable, Codable, ParameterConvertible, Hashable {
/** LinkId is the link these counts are for. */
public var linkId: String?
/** Pages is the per-page breakdown, in page order. */
public var pages: [DataroomPageStat]?
/** TotalPageViews is how many page views the link received. */
public var totalPageViews: Int64?
/** TotalViews is how many viewing sessions the link opened. */
public var totalViews: Int64?
public init(linkId: String? = nil, pages: [DataroomPageStat]? = nil, totalPageViews: Int64? = nil, totalViews: Int64? = nil) {
self.linkId = linkId
self.pages = pages
self.totalPageViews = totalPageViews
self.totalViews = totalViews
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case linkId
case pages
case totalPageViews
case totalViews
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(linkId, forKey: .linkId)
try container.encodeIfPresent(pages, forKey: .pages)
try container.encodeIfPresent(totalPageViews, forKey: .totalPageViews)
try container.encodeIfPresent(totalViews, forKey: .totalViews)
}
}