aboutsummaryrefslogtreecommitdiff
path: root/web/app/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-03 10:57:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-06-03 10:57:09 +1200
commit9ecabbef669cbd1a91490f4872d4c220b54e37a4 (patch)
tree7d2afe2b865dc5f9f10faa5ce7d213a219afa82a /web/app/model
parent06a746b44dae69b0c84a5302f92a1bcbe2dc827f (diff)
parent0271fa29703f24df24756c117209b9b04e127fc3 (diff)
downloadtrackermap-server-9ecabbef669cbd1a91490f4872d4c220b54e37a4.tar.gz
trackermap-server-9ecabbef669cbd1a91490f4872d4c220b54e37a4.tar.bz2
trackermap-server-9ecabbef669cbd1a91490f4872d4c220b54e37a4.zip
Merge pull request #1992 from Abyss777/master
Show events in web interface with toasts
Diffstat (limited to 'web/app/model')
-rw-r--r--web/app/model/Event.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/web/app/model/Event.js b/web/app/model/Event.js
new file mode 100644
index 000000000..4dd3ea7ff
--- /dev/null
+++ b/web/app/model/Event.js
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2015 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.
+ */
+
+Ext.define('Traccar.model.Event', {
+ extend: 'Ext.data.Model',
+ identifier: 'negative',
+
+ fields: [{
+ name: 'id',
+ type: 'int'
+ }, {
+ name: 'type',
+ type: 'string'
+ }, {
+ name: 'serverTime',
+ type: 'date',
+ dateFormat: 'c'
+ }, {
+ name: 'deviceId',
+ type: 'int'
+ }, {
+ name: 'positionId',
+ type: 'int'
+ }, {
+ name: 'attributes'
+ }]
+});