From a25e7bd56c128fb2a1c673abf735b3e64706f9a8 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Sun, 26 Jun 2016 00:51:33 +0500 Subject: Added notifications via email Added notifications settings --- src/org/traccar/model/Notification.java | 40 +++++++++++++++++++++++++++++++++ src/org/traccar/model/User.java | 14 ++---------- 2 files changed, 42 insertions(+), 12 deletions(-) create mode 100644 src/org/traccar/model/Notification.java (limited to 'src/org/traccar/model') diff --git a/src/org/traccar/model/Notification.java b/src/org/traccar/model/Notification.java new file mode 100644 index 000000000..0664d6a00 --- /dev/null +++ b/src/org/traccar/model/Notification.java @@ -0,0 +1,40 @@ +/* + * Copyright 2016 Anton Tananaev (anton.tananaev@gmail.com) + * + * 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 + * + * http://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 org.traccar.model; + +public class Notification extends Extensible { + + private long userId; + + public long getUserId() { + return userId; + } + + public void setUserId(long userId) { + this.userId = userId; + } + + private String type; + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + +} diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java index 287de121c..aa73cfcff 100644 --- a/src/org/traccar/model/User.java +++ b/src/org/traccar/model/User.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 - 2015 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2013 - 2016 Anton Tananaev (anton.tananaev@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,17 +18,7 @@ package org.traccar.model; import com.fasterxml.jackson.annotation.JsonIgnore; import org.traccar.helper.Hashing; -public class User { - - private long id; - - public long getId() { - return id; - } - - public void setId(long id) { - this.id = id; - } +public class User extends Extensible { private String name; -- cgit v1.2.3