Subversion Repositories SmartDukaan

Rev

Rev 34794 | Rev 35117 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34794 Rev 35079
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
import java.math.BigDecimal;
3
import java.math.BigDecimal;
4
import java.time.LocalDate;
4
import java.time.LocalDate;
5
import java.time.LocalTime;
5
import java.time.LocalTime;
-
 
6
import java.util.Date;
-
 
7
import java.util.List;
6
 
8
 
7
public class LocationTrackingModel {
9
public class LocationTrackingModel {
8
 
10
 
9
    private int id;
11
    private int id;
10
    private int userId;
12
    private int userId;
Line 24... Line 26...
24
    private String address;
26
    private String address;
25
    private String attachment;
27
    private String attachment;
26
    private BigDecimal totalDistance;
28
    private BigDecimal totalDistance;
27
    private int assignedBy;
29
    private int assignedBy;
28
    private boolean status;
30
    private boolean status;
-
 
31
    private List<Path> journeyPath;
29
 
32
 
30
    public int getId() {
33
    public int getId() {
31
        return id;
34
        return id;
32
    }
35
    }
33
 
36
 
Line 189... Line 192...
189
 
192
 
190
    public void setStatus(boolean status) {
193
    public void setStatus(boolean status) {
191
        this.status = status;
194
        this.status = status;
192
    }
195
    }
193
 
196
 
-
 
197
    public List<Path> getJourneyPath() {
-
 
198
        return journeyPath;
-
 
199
    }
-
 
200
 
-
 
201
    public void setJourneyPath(List<Path> journeyPath) {
-
 
202
        this.journeyPath = journeyPath;
-
 
203
    }
-
 
204
 
-
 
205
    public static class Path {
-
 
206
        private int userId;
-
 
207
        private Date taskDate;
-
 
208
        private String lat;
-
 
209
        private String lng;
-
 
210
        private String accuracy;
-
 
211
        private String timestamp;
-
 
212
 
-
 
213
        public String getLat() {
-
 
214
            return lat;
-
 
215
        }
-
 
216
        public void setLat(String lat) {
-
 
217
            this.lat = lat;
-
 
218
        }
-
 
219
 
-
 
220
        public String getLng() {
-
 
221
            return lng;
-
 
222
        }
-
 
223
        public void setLng(String lng) {
-
 
224
            this.lng = lng;
-
 
225
        }
-
 
226
 
-
 
227
        public String getAccuracy() {
-
 
228
            return accuracy;
-
 
229
        }
-
 
230
        public void setAccuracy(String accuracy) {
-
 
231
            this.accuracy = accuracy;
-
 
232
        }
-
 
233
 
-
 
234
        public String getTimestamp() {
-
 
235
            return timestamp;
-
 
236
        }
-
 
237
        public void setTimestamp(String timestamp) {
-
 
238
            this.timestamp = timestamp;
-
 
239
        }
-
 
240
 
-
 
241
        public int getUserId() {
-
 
242
            return userId;
-
 
243
        }
-
 
244
 
-
 
245
        public void setUserId(int userId) {
-
 
246
            this.userId = userId;
-
 
247
        }
-
 
248
 
-
 
249
        public Date getTaskDate() {
-
 
250
            return taskDate;
-
 
251
        }
-
 
252
 
-
 
253
        public void setTaskDate(Date taskDate) {
-
 
254
            this.taskDate = taskDate;
-
 
255
        }
-
 
256
 
-
 
257
        @Override
-
 
258
        public String toString() {
-
 
259
            return "Path{" +
-
 
260
                    "lat=" + lat +
-
 
261
                    ", lng=" + lng +
-
 
262
                    ", accuracy=" + accuracy +
-
 
263
                    ", timestamp=" + timestamp +
-
 
264
                    '}';
-
 
265
        }
-
 
266
    }
-
 
267
 
194
    @Override
268
    @Override
195
    public String toString() {
269
    public String toString() {
196
        return "LocationTrackingModel{" +
270
        return "LocationTrackingModel{" +
197
                "id=" + id +
271
                "id=" + id +
198
                ", userId=" + userId +
272
                ", userId=" + userId +