RouteFilters

data class RouteFilters(val ids: List<Int>? = null, val names: List<String>? = null, val descriptions: List<String>? = null, val identifications: List<String>? = null, val status: List<PlaceStatusType>? = null, val types: List<RouteType>? = null, val distanceUnits: List<DistanceUnit>? = null, val totalDurations: List<String>? = null, val totalDistances: List<Int>? = null, val tripTypeIds: List<Int>? = null, val companyIds: List<Int>? = null, val addedOnDates: List<String>? = null, val updateOnDates: List<String>? = null)

RouteFilters is a data class that represents the filters to apply on the API search to get the Route registers.

Note: The filter query depends on the ApiLogicalOperator configured in the search. And this operator will be used to join the filters.

Example: if the operator is ApiLogicalOperator.AND, then the query will be like: id1 AND id2 AND id3 AND ... AND name1 AND name2 AND name3... If the operator is ApiLogicalOperator.OR, then the query will be like: id1 OR id2 OR id3 OR ... OR name1 OR name2 OR name3...

Constructors

Link copied to clipboard
constructor(ids: List<Int>? = null, names: List<String>? = null, descriptions: List<String>? = null, identifications: List<String>? = null, status: List<PlaceStatusType>? = null, types: List<RouteType>? = null, distanceUnits: List<DistanceUnit>? = null, totalDurations: List<String>? = null, totalDistances: List<Int>? = null, tripTypeIds: List<Int>? = null, companyIds: List<Int>? = null, addedOnDates: List<String>? = null, updateOnDates: List<String>? = null)

Properties

Link copied to clipboard
val addedOnDates: List<String>? = null

List<String> the added on dates of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val companyIds: List<Int>? = null

List<Int> the company ids of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val descriptions: List<String>? = null

List<String> the descriptions of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard

List<DistanceUnit> the distance units of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard

List<String> the identifications of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val ids: List<Int>? = null

List<Int> the ids of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val names: List<String>? = null

List<String> the names of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard

List<PlaceStatusType> the status of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val totalDistances: List<Int>? = null

List<Int> the total distances of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val totalDurations: List<String>? = null

List<String> the total durations of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val tripTypeIds: List<Int>? = null

List<Int> the trip type ids of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val types: List<RouteType>? = null

List<RouteType> the types of the routes to search/filter. If null, it will be ignored.

Link copied to clipboard
val updateOnDates: List<String>? = null

List<String> the update on dates of the routes to search/filter. If null, it will be ignored.