From 4985864343e9b22f0edb8a153a84d05a8e546465 Mon Sep 17 00:00:00 2001 From: Nico Schmitz Date: Wed, 19 Sep 2018 22:27:30 +0200 Subject: [PATCH] Add title. Generate getters. --- .../general/automation/AutomationEvent.java | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationEvent.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationEvent.java index c0de76ee37..8e71c19d6e 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationEvent.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/AutomationEvent.java @@ -8,9 +8,23 @@ import info.nightscout.androidaps.plugins.general.automation.triggers.Trigger; public class AutomationEvent { - Trigger trigger; - List actions = new ArrayList<>(); + private Trigger trigger; + private List actions = new ArrayList<>(); + private String title; - AutomationEvent() { + AutomationEvent(String title) { + this.title = title; + } + + public Trigger getTrigger() { + return trigger; + } + + public List getActions() { + return actions; + } + + public String getTitle() { + return title; } }