RetrieveStatisticsParameters
public class RetrieveStatisticsParameters : Codable
The RetrieveStatisticsParameters class represents the
-
Indicates how the statistics should be grouped.
Declaration
Swift
public let aggregatedBy: Statistic.Aggregation? -
The starting date of the statistics to retrieve.
Declaration
Swift
public let startDate: Date -
The end date of the statistics to retrieve.
Declaration
Swift
public let endDate: Date? -
The categories to retrieve stats for.
Declaration
Swift
public let categories: [String]? -
The subusers to retrieve stats for.
Declaration
Swift
public let subusers: [String]? -
Initializes the request with a start date, as well as an end date and/or aggregation method.
Declaration
Swift
public init(startDate: Date, endDate: Date? = nil, aggregatedBy: Statistic.Aggregation? = nil, categories: [String]? = nil, subusers: [String]? = nil)Parameters
startDateThe starting date of the statistics to retrieve.
endDateThe end date of the statistics to retrieve.
aggregatedByIndicates how the statistics should be grouped.
View on GitHub
RetrieveStatisticsParameters Class Reference