diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-06-28 14:09:44 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-28 14:09:44 +1200 |
commit | 7327681f0bd2338f9c8ee3ea1b4a19dcc5f0de48 (patch) | |
tree | 0ea99ab937fbae96b35cc5dc62edbc74594af9e4 /src/org/traccar/model | |
parent | 67f46c80d3b5e34440a2644f52b81dddfbaba5fa (diff) | |
parent | 61b2486353c742afe6214f0a0c5c2e9956ea3b97 (diff) | |
download | trackermap-server-7327681f0bd2338f9c8ee3ea1b4a19dcc5f0de48.tar.gz trackermap-server-7327681f0bd2338f9c8ee3ea1b4a19dcc5f0de48.tar.bz2 trackermap-server-7327681f0bd2338f9c8ee3ea1b4a19dcc5f0de48.zip |
Merge pull request #2052 from Abyss777/master
Notifications via email
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/Notification.java | 40 | ||||
-rw-r--r-- | src/org/traccar/model/User.java | 14 |
2 files changed, 42 insertions, 12 deletions
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; |