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 1/2] [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; + } } From dec62e8b9ad0c1a18462b42ce0e66e9aebee19d2 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Mon, 14 Dec 2020 10:56:49 +0100 Subject: [PATCH 2/2] [ADD] coupon class fields and getters / setters --- .../java/com/a1/nextlocation/data/Coupon.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/src/main/java/com/a1/nextlocation/data/Coupon.java b/app/src/main/java/com/a1/nextlocation/data/Coupon.java index b980ab3..5cfcece 100644 --- a/app/src/main/java/com/a1/nextlocation/data/Coupon.java +++ b/app/src/main/java/com/a1/nextlocation/data/Coupon.java @@ -1,4 +1,23 @@ package com.a1.nextlocation.data; public class Coupon { + + private String code; + private String reward; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getReward() { + return reward; + } + + public void setReward(String reward) { + this.reward = reward; + } }