Subversion Repositories SmartDukaan

Rev

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

Rev 34678 Rev 34692
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
-
 
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
-
 
4
 
3
import java.math.BigDecimal;
5
import java.math.BigDecimal;
4
import java.time.LocalDate;
6
import java.time.LocalDate;
5
import java.time.LocalTime;
7
import java.time.LocalTime;
6
 
8
 
7
public class LocationTrackingModel {
9
public class LocationTrackingModel {
Line 10... Line 12...
10
    private int userId;
12
    private int userId;
11
    private String deviceId;
13
    private String deviceId;
12
    private String latLng;
14
    private String latLng;
13
    private LocalDate taskDate;
15
    private LocalDate taskDate;
14
    private String taskName;
16
    private String taskName;
-
 
17
    private String checkInTime;
-
 
18
    private String checkOutTime;
15
    private String markType;
19
    private String transitTime;
-
 
20
    private String timeSpent;
-
 
21
    private ProfitMandiConstants.MARK_TYPE markType;
16
    private String taskType;
22
    private String taskType;
17
    private LocalTime taskTime;
23
    private LocalTime taskTime;
18
    private String taskDescription;
24
    private String taskDescription;
19
    private String address;
25
    private String address;
20
    private String attachment;
26
    private String attachment;
21
    private BigDecimal totalDistance;
27
    private BigDecimal totalDistance;
22
    private int assignedBy;
28
    private int assignedBy;
23
    private byte status;
29
    private boolean status;
24
 
30
 
25
    public int getId() {
31
    public int getId() {
26
        return id;
32
        return id;
27
    }
33
    }
28
 
34
 
Line 76... Line 82...
76
 
82
 
77
    public void setTaskType(String taskType) {
83
    public void setTaskType(String taskType) {
78
        this.taskType = taskType;
84
        this.taskType = taskType;
79
    }
85
    }
80
 
86
 
81
    public String getMarkType() {
87
    public String getCheckInTime() {
-
 
88
        return checkInTime;
-
 
89
    }
-
 
90
 
-
 
91
    public void setCheckInTime(String checkInTime) {
-
 
92
        this.checkInTime = checkInTime;
-
 
93
    }
-
 
94
 
-
 
95
    public String getCheckOutTime() {
-
 
96
        return checkOutTime;
-
 
97
    }
-
 
98
 
-
 
99
    public void setCheckOutTime(String checkOutTime) {
-
 
100
        this.checkOutTime = checkOutTime;
-
 
101
    }
-
 
102
 
-
 
103
    public String getTransitTime() {
-
 
104
        return transitTime;
-
 
105
    }
-
 
106
 
-
 
107
    public void setTransitTime(String transitTime) {
-
 
108
        transitTime = transitTime;
-
 
109
    }
-
 
110
 
-
 
111
    public String getTimeSpent() {
-
 
112
        return timeSpent;
-
 
113
    }
-
 
114
 
-
 
115
    public void setTimeSpent(String timeSpent) {
-
 
116
        this.timeSpent = timeSpent;
-
 
117
    }
-
 
118
 
-
 
119
    public ProfitMandiConstants.MARK_TYPE getMarkType() {
82
        return markType;
120
        return markType;
83
    }
121
    }
84
 
122
 
85
    public void setMarkType(String markType) {
123
    public void setMarkType(ProfitMandiConstants.MARK_TYPE markType) {
86
        this.markType = markType;
124
        this.markType = markType;
87
    }
125
    }
88
 
126
 
-
 
127
    public boolean isStatus() {
-
 
128
        return status;
-
 
129
    }
-
 
130
 
89
    public LocalTime getTaskTime() {
131
    public LocalTime getTaskTime() {
90
        return taskTime;
132
        return taskTime;
91
    }
133
    }
92
 
134
 
93
    public void setTaskTime(LocalTime taskTime) {
135
    public void setTaskTime(LocalTime taskTime) {
Line 132... Line 174...
132
 
174
 
133
    public void setAssignedBy(int assignedBy) {
175
    public void setAssignedBy(int assignedBy) {
134
        this.assignedBy = assignedBy;
176
        this.assignedBy = assignedBy;
135
    }
177
    }
136
 
178
 
137
    public byte getStatus() {
179
    public boolean getStatus() {
138
        return status;
180
        return status;
139
    }
181
    }
140
 
182
 
141
    public void setStatus(byte status) {
183
    public void setStatus(boolean status) {
142
        this.status = status;
184
        this.status = status;
143
    }
185
    }
144
 
186
 
145
    @Override
187
    @Override
146
    public String toString() {
188
    public String toString() {
-
 
189
        return "LocationTrackingModel{" +
-
 
190
                "id=" + id +
-
 
191
                ", userId=" + userId +
147
        return "LocationTrackingRequest [userId=" + userId + ", deviceId=" + deviceId + ", latLng=" + latLng
192
                ", deviceId='" + deviceId + '\'' +
-
 
193
                ", latLng='" + latLng + '\'' +
-
 
194
                ", taskDate=" + taskDate +
-
 
195
                ", taskName='" + taskName + '\'' +
-
 
196
                ", checkInTime='" + checkInTime + '\'' +
-
 
197
                ", checkOutTime='" + checkOutTime + '\'' +
-
 
198
                ", transitTime='" + transitTime + '\'' +
-
 
199
                ", timeSpent='" + timeSpent + '\'' +
148
                + ", taskDate=" + taskDate + ", taskName=" + taskName + ", taskType=" + taskType +", markType=" + markType + ", taskTime="
200
                ", taskType='" + taskType + '\'' +
-
 
201
                ", taskTime=" + taskTime +
149
                + taskTime + ", taskDescription=" + taskDescription + ", address=" + address + ", attachment="
202
                ", taskDescription='" + taskDescription + '\'' +
-
 
203
                ", address='" + address + '\'' +
-
 
204
                ", attachment='" + attachment + '\'' +
150
                + attachment + ", totalDistance=" + totalDistance + ", assignedBy=" + assignedBy + ", status=" + status
205
                ", totalDistance=" + totalDistance +
-
 
206
                ", assignedBy=" + assignedBy +
-
 
207
                ", status=" + status +
151
                + "]";
208
                '}';
152
    }
209
    }
153
}
210
}
154
211