// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.sps.data;

import java.util.ArrayList;

/**
 * A class to make a Trip type, containing
 * a specific id, destinations, interests and routes 
 * to be used when updating a trip.
 */
public final class Trip{

  private long id;
  private ArrayList<String> destinations;
  private ArrayList<String> interests;
  private ArrayList<String> route;

  public Trip(long id, ArrayList<String> destinations) {
    configureTrip(id, destinations, null, null);
  }

  public Trip(long id, ArrayList<String> destinations,
              ArrayList<String> interests) {
    configureTrip(id, destinations, interests, null);
  }

  public Trip(long id, ArrayList<String> destinations,
              ArrayList<String> interests, ArrayList<String> route) {
    configureTrip(id, destinations, interests, route);
  }

  private void configureTrip(long id, ArrayList<String> destinations,
              ArrayList<String> interests, ArrayList<String> route) {
    this.id = id;
    this.destinations = destinations;
    this.interests = interests;
    this.route = route;
  }

  public ArrayList<String> getInterests() {
      return this.interests;
  }

  public ArrayList<String> getRoute() {
      return this.route;
  }

  public ArrayList<String> getDestinations() {
    return this.destinations;
  }
} 
@@ -805,16 +805,17 @@
 ass Trip
+ 
 %7B%0A%0A  pri
@@ -828,16 +828,40 @@
 ong id;%0A
+  private String start;%0A
   privat
@@ -1039,32 +1039,49 @@
 onfigureTrip(id,
+ destinations%5B0%5D,
  destinations, n
@@ -1210,32 +1210,49 @@
 onfigureTrip(id,
+ destinations%5B0%5D,
  destinations, i
@@ -1411,32 +1411,49 @@
 onfigureTrip(id,
+ destinations%5B0%5D,
  destinations, i
@@ -1504,32 +1504,46 @@
 ureTrip(long id,
+ String start,
  ArrayList%3CStrin
@@ -1647,16 +1647,40 @@
 d = id;%0A
+    this.start = start;%0A
     this
@@ -1998,11 +1998,138 @@
 ons;%0A  %7D
+%0A%0A  public ArrayList%3CString%3E getTripId() %7B%0A      return this.id;%0A  %7D%0A%0A  public String getStart() %7B%0A      return this.start;%0A  %7D
 %0A%7D 

Include start variable and get functions