forked from conveyal/gtfs-lib
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
738 additions
and
193 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.Area} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class AreaDTO { | ||
public Integer id; | ||
public String area_id; | ||
public String area_name; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.FareLegRule} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class FareLegRuleDTO { | ||
public Integer id; | ||
public String leg_group_id; | ||
public String network_id; | ||
public String from_area_id; | ||
public String to_area_id; | ||
public String from_timeframe_group_id; | ||
public String to_timeframe_group_id; | ||
public String fare_product_id; | ||
public int rule_priority; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.FareMedia} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class FareMediaDTO { | ||
public Integer id; | ||
public String fare_media_id; | ||
public String fare_media_name; | ||
public int fare_media_type; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.FareProduct} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class FareProductDTO { | ||
public Integer id; | ||
public String fare_product_id; | ||
public String fare_product_name; | ||
public String fare_media_id; | ||
public double amount; | ||
public String currency; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/test/java/com/conveyal/gtfs/dto/FareTransferRuleDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.FareTransferRule} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class FareTransferRuleDTO { | ||
public Integer id; | ||
public String from_leg_group_id; | ||
public String to_leg_group_id; | ||
public int transfer_count; | ||
public int duration_limit; | ||
public int duration_limit_type; | ||
public int fare_transfer_type; | ||
public String fare_product_id; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.Network} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class NetworkDTO { | ||
public Integer id; | ||
public String network_id; | ||
public String network_name; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.RouteNetwork} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class RouteNetworkDTO { | ||
public Integer id; | ||
public String network_id; | ||
public String route_id; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.StopArea} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class StopAreaDTO { | ||
public Integer id; | ||
public String area_id; | ||
public String stop_id; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.conveyal.gtfs.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
/** | ||
* DTO used to model expected {@link com.conveyal.gtfs.model.TimeFrame} JSON structure for the editor. NOTE: reference types | ||
* (e.g., Integer and Double) are used here in order to model null/empty values in JSON object. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class TimeFrameDTO { | ||
public Integer id; | ||
public String timeframe_group_id; | ||
public Integer start_time; | ||
public Integer end_time; | ||
public String service_id; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.