From fac41e2adec6c580d1f81f69774f1865e867b80e Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Mon, 14 Dec 2020 10:55:39 +0100 Subject: [PATCH] [ADD] route class fields and getters / setters --- .../java/com/a1/nextlocation/data/Route.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/app/src/main/java/com/a1/nextlocation/data/Route.java b/app/src/main/java/com/a1/nextlocation/data/Route.java index 213f3ba..2714dab 100644 --- a/app/src/main/java/com/a1/nextlocation/data/Route.java +++ b/app/src/main/java/com/a1/nextlocation/data/Route.java @@ -1,4 +1,42 @@ package com.a1.nextlocation.data; +import java.util.List; + public class Route { + private String name; + private List locations; + private float totalDistance; + private int totalTime; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getLocations() { + return locations; + } + + public void setLocations(List locations) { + this.locations = locations; + } + + public float getTotalDistance() { + return totalDistance; + } + + public void setTotalDistance(float totalDistance) { + this.totalDistance = totalDistance; + } + + public int getTotalTime() { + return totalTime; + } + + public void setTotalTime(int totalTime) { + this.totalTime = totalTime; + } }