Advertisement
Denisimus

Untitled

Jun 1st, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.14 KB | None | 0 0
  1. public class Routes<J extends JsonElement> {
  2.     @SerializedName("bounds")
  3.     @Expose
  4.     private Bounds bounds;
  5.  
  6.     @SerializedName("copyrights")
  7.     @Expose
  8.     private String copyrights;
  9.  
  10.     @SerializedName("legs")
  11.     @Expose
  12.     private List<Legs> legs;
  13.  
  14.     @SerializedName("overview_polyline")
  15.     @Expose
  16.     private Overview_polyline overview_polyline;
  17.  
  18.     @SerializedName("summary")
  19.     @Expose
  20.     private String summary;
  21.  
  22.     @SerializedName("warnings")
  23.     @Expose
  24.     private List<String> warnings;
  25.  
  26.     @SerializedName("waypoint_order")
  27.     @Expose
  28.     private List<String> waypoint_order;
  29.  
  30.     public Routes(Bounds bounds,
  31.                   String copyrights,
  32.                   List<Legs> legs,
  33.                   Overview_polyline overview_polyline,
  34.                   String summary,
  35.                   List<String> warnings,
  36.                   List<String> waypoint_order) {
  37.         this.bounds = bounds;
  38.         this.copyrights = copyrights;
  39.         this.legs = legs;
  40.         this.overview_polyline = overview_polyline;
  41.         this.summary = summary;
  42.         this.warnings = warnings;
  43.         this.waypoint_order = waypoint_order;
  44.     }
  45.  
  46.     public Bounds getBounds() {
  47.         return bounds;
  48.     }
  49.  
  50.     public String getCopyrights() {
  51.         return copyrights;
  52.     }
  53.  
  54.     public List<Legs> getLegs() {
  55.         return legs;
  56.     }
  57.  
  58.     public Overview_polyline getOverview_polyline() {
  59.         return overview_polyline;
  60.     }
  61.  
  62.     public String getSummary() {
  63.         return summary;
  64.     }
  65.  
  66.     public List<String> getWarnings() {
  67.         return warnings;
  68.     }
  69.  
  70.     public List<String> getWaypoint_order() {
  71.         return waypoint_order;
  72.     }
  73.  
  74.     @Override
  75.     public String toString() {
  76.         return "Routes{" +
  77.                 "bounds=" + bounds +
  78.                 ", copyrights='" + copyrights + '\n' +
  79.                 ", legs=" + legs +
  80.                 ", overview_polyline=" + overview_polyline +
  81.                 ", summary='" + summary + '\n' +
  82.                 ", warnings=" + warnings +
  83.                 ", waypoint_order=" + waypoint_order +
  84.                 '}';
  85.     }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement