TNAggregatedScoreRequest
@objcMembers
public class TNAggregatedScoreRequest : TNDriveMotionRequest
Request class to get aggregated score. Create an instance through {@link TNAggregatedScoreRequestBuilder#build()}.
-
The start date of the time range. Set the value through {@link TNAggregatedScoreRequestBuilder#startDate(Date)}. If the start date is not set, you will get a DriveMotionError when creating the TNAggregatedScoreRequest instance.
Declaration
Swift
public let startDate: Date
-
The end date of the time range. Set the value through {@link TNAggregatedScoreRequestBuilder#endDate(Date)}. If the end date is not set or the end date is before the start date, you will get a DriveMotionError when creating the TNAggregatedScoreRequest instance.
Declaration
Swift
public let endDate: Date
-
Used to divide the time range(see {@link TNIntervalType}). Set the value through {@link TNAggregatedScoreRequestBuilder#intervalType(TNIntervalType)}. If you don’t need it, you don’t need to set it. For example: StartDate is August 5, 2021, and endDate is September 17, 2021, and intervalType is set to MONTH (30 days). When you get {@link TNAggregatedScoreResponse}, intervalScores intervalScores will contain two {@link TNIntervalScore} instances. The first {@link TNIntervalScore} instance is the aggregate score from August 5 to September 3, and the second is the aggregate score from September 4 to September 17.
Declaration
Swift
public let intervalType: TNIntervalType?
-
Vehicle Identification
Declaration
Swift
public let assetId: String?
-
Undocumented
Declaration
Swift
public override func encode(to encoder: Encoder) throws
-
Build a {@link TNAggregatedScoreRequestBuilder} instance used for setting request condition @return {@link TNAggregatedScoreRequestBuilder} instance
Declaration
Swift
public static func builder() -> TNAggregatedScoreRequestBuilder