Skip to content

Commit a8f595e

Browse files
chore(internal): codegen related update (#76)
1 parent a433a99 commit a8f595e

14 files changed

+70
-0
lines changed

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ArrivalAndDepartureListParams.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ constructor(
2222

2323
fun stopId(): String = stopId
2424

25+
/** Include vehicles arriving or departing in the next n minutes. */
2526
fun minutesAfter(): Optional<Long> = Optional.ofNullable(minutesAfter)
2627

28+
/** Include vehicles having arrived or departed in the previous n minutes. */
2729
fun minutesBefore(): Optional<Long> = Optional.ofNullable(minutesBefore)
2830

31+
/** The specific time for querying the system status. */
2932
fun time(): Optional<OffsetDateTime> = Optional.ofNullable(time)
3033

3134
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ReportProblemWithStopRetrieveParams.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@ constructor(
2626

2727
fun stopId(): String = stopId
2828

29+
/** A string code identifying the nature of the problem */
2930
fun code(): Optional<Code> = Optional.ofNullable(code)
3031

32+
/** Additional comment text supplied by the user describing the problem */
3133
fun userComment(): Optional<String> = Optional.ofNullable(userComment)
3234

35+
/** The reporting user’s current latitude */
3336
fun userLat(): Optional<Double> = Optional.ofNullable(userLat)
3437

38+
/** The reporting user’s location accuracy, in meters */
3539
fun userLocationAccuracy(): Optional<Double> = Optional.ofNullable(userLocationAccuracy)
3640

41+
/** The reporting user’s current longitude */
3742
fun userLon(): Optional<Double> = Optional.ofNullable(userLon)
3843

3944
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ReportProblemWithTripRetrieveParams.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,34 @@ constructor(
3131

3232
fun tripId(): String = tripId
3333

34+
/** A string code identifying the nature of the problem */
3435
fun code(): Optional<Code> = Optional.ofNullable(code)
3536

37+
/** The service date of the trip */
3638
fun serviceDate(): Optional<Long> = Optional.ofNullable(serviceDate)
3739

40+
/** A stop ID indicating where the user is experiencing the problem */
3841
fun stopId(): Optional<String> = Optional.ofNullable(stopId)
3942

43+
/** Additional comment text supplied by the user describing the problem */
4044
fun userComment(): Optional<String> = Optional.ofNullable(userComment)
4145

46+
/** The reporting user’s current latitude */
4247
fun userLat(): Optional<Double> = Optional.ofNullable(userLat)
4348

49+
/** The reporting user’s location accuracy, in meters */
4450
fun userLocationAccuracy(): Optional<Double> = Optional.ofNullable(userLocationAccuracy)
4551

52+
/** The reporting user’s current longitude */
4653
fun userLon(): Optional<Double> = Optional.ofNullable(userLon)
4754

55+
/** Indicator if the user is on the transit vehicle experiencing the problem */
4856
fun userOnVehicle(): Optional<Boolean> = Optional.ofNullable(userOnVehicle)
4957

58+
/** The vehicle number, as reported by the user */
5059
fun userVehicleNumber(): Optional<String> = Optional.ofNullable(userVehicleNumber)
5160

61+
/** The vehicle actively serving the trip */
5262
fun vehicleId(): Optional<String> = Optional.ofNullable(vehicleId)
5363

5464
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForRouteRetrieveParams.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ constructor(
1919

2020
fun routeId(): String = routeId
2121

22+
/**
23+
* The date for which you want to request a schedule in the format YYYY-MM-DD (optional,
24+
* defaults to current date)
25+
*/
2226
fun date(): Optional<LocalDate> = Optional.ofNullable(date)
2327

2428
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/ScheduleForStopRetrieveParams.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ constructor(
1919

2020
fun stopId(): String = stopId
2121

22+
/**
23+
* The date for which you want to request a schedule in the format YYYY-MM-DD (optional,
24+
* defaults to the current date)
25+
*/
2226
fun date(): Optional<LocalDate> = Optional.ofNullable(date)
2327

2428
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForRouteListParams.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ constructor(
1616
private val additionalQueryParams: QueryParams,
1717
) {
1818

19+
/** The string to search for. */
1920
fun input(): String = input
2021

22+
/** The max number of results to return. Defaults to 20. */
2123
fun maxCount(): Optional<Long> = Optional.ofNullable(maxCount)
2224

2325
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/SearchForStopListParams.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ constructor(
1616
private val additionalQueryParams: QueryParams,
1717
) {
1818

19+
/** The string to search for. */
1920
fun input(): String = input
2021

22+
/** The max number of results to return. Defaults to 20. */
2123
fun maxCount(): Optional<Long> = Optional.ofNullable(maxCount)
2224

2325
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForLocationListParams.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ constructor(
2424

2525
fun lon(): Double = lon
2626

27+
/** An alternative to radius to set the search bounding box (optional) */
2728
fun latSpan(): Optional<Double> = Optional.ofNullable(latSpan)
2829

30+
/** An alternative to radius to set the search bounding box (optional) */
2931
fun lonSpan(): Optional<Double> = Optional.ofNullable(lonSpan)
3032

33+
/** A search query string to filter the results */
3134
fun query(): Optional<String> = Optional.ofNullable(query)
3235

36+
/** The radius in meters to search within */
3337
fun radius(): Optional<Double> = Optional.ofNullable(radius)
3438

3539
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/StopsForRouteListParams.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ constructor(
1919

2020
fun routeId(): String = routeId
2121

22+
/** Include polyline elements in the response (default true) */
2223
fun includePolylines(): Optional<Boolean> = Optional.ofNullable(includePolylines)
2324

25+
/** Specify service date (YYYY-MM-DD or epoch) (default today) */
2426
fun time(): Optional<String> = Optional.ofNullable(time)
2527

2628
fun _additionalHeaders(): Headers = additionalHeaders

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/models/TripDetailRetrieveParams.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,21 @@ constructor(
2222

2323
fun tripId(): String = tripId
2424

25+
/**
26+
* Whether to include the full schedule element in the tripDetails section (defaults to true).
27+
*/
2528
fun includeSchedule(): Optional<Boolean> = Optional.ofNullable(includeSchedule)
2629

30+
/** Whether to include the full status element in the tripDetails section (defaults to true). */
2731
fun includeStatus(): Optional<Boolean> = Optional.ofNullable(includeStatus)
2832

33+
/** Whether to include the full trip element in the references section (defaults to true). */
2934
fun includeTrip(): Optional<Boolean> = Optional.ofNullable(includeTrip)
3035

36+
/** Service date for the trip as Unix time in milliseconds (optional). */
3137
fun serviceDate(): Optional<Long> = Optional.ofNullable(serviceDate)
3238

39+
/** Time parameter to query the system at a specific time (optional). */
3340
fun time(): Optional<Long> = Optional.ofNullable(time)
3441

3542
fun _additionalHeaders(): Headers = additionalHeaders

0 commit comments

Comments
 (0)