package com.example.alexis.navitia_android;

/**
 * @author Alexis Robin
 * @version 0.5
 * Licensed under the Apache2 license
 */
public abstract class WayPart {

    private String type = "WayPart";

    private Address from;
    private Address to;
    private double co2Emission;

    private String departureDateTime;
    private String arrivalDateTime;
    private int duration;

    private GeoJSON geoJSON;

    protected WayPart(String type, Address from, Address to, double co2Emission, String departureDateTime, String arrivalDateTime, int duration, GeoJSON geoJSON){
        this.type = type;
        this.from = from;
        this.to = to;
        this.co2Emission = co2Emission;
        this.departureDateTime = departureDateTime;
        this.arrivalDateTime = arrivalDateTime;
        this.duration = duration;
        this.geoJSON = geoJSON;
    }

    public String getType() {
        return type;
    }

    public Address getFrom() {
        return from;
    }

    public Address getTo() {
        return to;
    }

    public double getCo2Emission() {
        return co2Emission;
    }

    public String getDepartureDateTime() {
        return departureDateTime;
    }

    public int getDuration() {
        return duration;
    }

    public String getArrivalDateTime() {
        return arrivalDateTime;
    }

    public GeoJSON getGeoJSON() {
        return geoJSON;
    }


}

@@ -81,16 +81,18 @@
 sion 0.5
+.1
 %0A * Lice
@@ -411,16 +411,422 @@
 oJSON;%0A%0A
+    protected WayPart(String type, double co2Emission, String departureDateTime, String arrivalDateTime, int duration)%7B%0A        this.type = type;%0A        this.co2Emission = co2Emission;%0A        this.departureDateTime = departureDateTime;%0A        this.arrivalDateTime = arrivalDateTime;%0A        this.duration = duration;%0A        this.from = null;%0A        this.to = null;%0A        this.geoJSON = null;%0A    %7D%0A%0A
     prot
@@ -1803,11 +1803,10 @@
 %0A    %7D%0A%0A
-%0A
 %7D%0A

Update WayPart.java