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
//
|
|
// 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)
|
|
}
|
|
}
|
|
|