TNGetTripsByIdsRequest

@objcMembers
public class TNGetTripsByIdsRequest : TNDriveMotionRequest

Request class to get trips by trip IDs. Create an instance through {@link TNGetTripsByIdsRequestBuilder#build()}. It supports querying trips by specific trip IDs.

  • The trip IDs to query. Set the value through {@link TNGetTripsByIdsRequestBuilder#tripIds(Array)}. If the trip IDs is empty, you will get a TNDriveMotionException when creating the TNGetTripsByIdsRequest instance.

    Declaration

    Swift

    public let tripIds: [String]
  • Vehicle Identification

    Declaration

    Swift

    public let assetId: String?
  • Indicates whether to exclude trip events info. Set the value through {@link TNGetTripsByIdsRequestBuilder#excludeTripEvents(Bool)} Default is false. if true, exclude trip events.

    Declaration

    Swift

    public let excludeTripEvents: Bool
  • Indicates whether to exclude trip route info. Set the value through {@link TNGetTripsByIdsRequestBuilder#excludeTripRoute(Bool)} Default is false. if true, exclude trip route.

    Declaration

    Swift

    public let excludeTripRoute: Bool
  • Build a {@link TNGetTripsByIdsRequestBuilder} instance used for setting request condition @param tripIds Array of trip IDs to query @return {@link TNGetTripsByIdsRequestBuilder} instance

    Declaration

    Swift

    public static func builder(tripIds: [String]) -> TNGetTripsByIdsRequestBuilder
  • Undocumented

    Declaration

    Swift

    public override func encode(to encoder: Encoder) throws