aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/model/Notification.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-07-01 16:04:07 -0700
committerAnton Tananaev <anton@traccar.org>2023-07-01 16:04:07 -0700
commit914cc6e85ba8696727edff2d8a600ae695bc410d (patch)
tree1c4841cb097b9b84bc0234e46ca8a20cd6bf8e24 /src/main/java/org/traccar/model/Notification.java
parentcad2b8497c7cbd2cde4e50ec1ce2af1ceb37d02c (diff)
downloadtrackermap-server-914cc6e85ba8696727edff2d8a600ae695bc410d.tar.gz
trackermap-server-914cc6e85ba8696727edff2d8a600ae695bc410d.tar.bz2
trackermap-server-914cc6e85ba8696727edff2d8a600ae695bc410d.zip
Add calendar based filtering
Diffstat (limited to 'src/main/java/org/traccar/model/Notification.java')
-rw-r--r--src/main/java/org/traccar/model/Notification.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/model/Notification.java b/src/main/java/org/traccar/model/Notification.java
index b6a6e4cf5..6dcd9c9de 100644
--- a/src/main/java/org/traccar/model/Notification.java
+++ b/src/main/java/org/traccar/model/Notification.java
@@ -24,7 +24,19 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import org.traccar.storage.StorageName;
@StorageName("tc_notifications")
-public class Notification extends ScheduledModel {
+public class Notification extends ExtendedModel implements Schedulable {
+
+ private long calendarId;
+
+ @Override
+ public long getCalendarId() {
+ return calendarId;
+ }
+
+ @Override
+ public void setCalendarId(long calendarId) {
+ this.calendarId = calendarId;
+ }
private boolean always;