package com.conveyal.taui.models;

import java.util.List;

/**
 * Created by matthewc on 3/28/16.
 */
public class Reroute extends Modification {
    public String name;

    public String feed;
    public String[] routes;
    public String[] trips;

    public String fromStop;
    public String toStop;

    public List<AddTripPattern.Segment> segments;

    /** speed of the adjusted segment, km/h, per segment */
    public int[] speed;

    /** dwell time at adjusted stops, seconds */
    public int dwell;

    @Override
    public String getType() {
        return "reroute";
    }
}

@@ -428,20 +428,28 @@
  int%5B%5D s
+egmentS
 peed
+s
 ;%0A%0A    /
@@ -512,16 +512,20 @@
 nt dwell
+Time
 ;%0A%0A    @

Rename speed to segmentSpeeds & dwell to dwellTime