Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
36658 ranu 1
package com.spice.profitmandi.dao.model;
2
 
3
import java.time.LocalDate;
4
import java.util.ArrayList;
5
import java.util.List;
6
 
7
/**
8
 * Self-contained snapshot of one beat for one scheduled date.
9
 * Returned by BeatPlanQueryService.getBeatsForUserOnDate(authUserId, date).
10
 * <p>
11
 * Stops carry only IDs and ordering info — enrichment with partner/lead
12
 * names and geocoded coordinates is left to the calling project (so this
13
 * common service stays free of geocoding/retailer dependencies).
14
 */
15
public class BeatDayDetails {
16
 
17
	private int beatId;
18
	private String beatName;
19
	private String beatColor;
20
	private int authUserId;
21
 
22
	private int dayNumber;
23
	private LocalDate scheduleDate;
24
	private LocalDate endDate;
25
	private Double totalDistanceKm;
26
	private Integer totalTimeMins;
27
	private String endAction;
28
 
29
	private String startLocationName;
30
	private String startLatitude;
31
	private String startLongitude;
32
	private String stayLocationName;
33
	private String stayLatitude;
34
	private String stayLongitude;
35
 
36
	/**
37
	 * Partner stops: each map has {fofoId, sequenceOrder, dayNumber}.
38
	 */
39
	private List<java.util.Map<String, Object>> partnerStops = new ArrayList<>();
40
 
41
	/**
42
	 * Lead stops for THIS scheduleDate: each map has {leadId, sequenceOrder, nearestStoreId, scheduleDate}.
43
	 */
44
	private List<java.util.Map<String, Object>> leadStops = new ArrayList<>();
45
 
46
	public int getBeatId() {
47
		return beatId;
48
	}
49
 
50
	public void setBeatId(int beatId) {
51
		this.beatId = beatId;
52
	}
53
 
54
	public String getBeatName() {
55
		return beatName;
56
	}
57
 
58
	public void setBeatName(String beatName) {
59
		this.beatName = beatName;
60
	}
61
 
62
	public String getBeatColor() {
63
		return beatColor;
64
	}
65
 
66
	public void setBeatColor(String beatColor) {
67
		this.beatColor = beatColor;
68
	}
69
 
70
	public int getAuthUserId() {
71
		return authUserId;
72
	}
73
 
74
	public void setAuthUserId(int authUserId) {
75
		this.authUserId = authUserId;
76
	}
77
 
78
	public int getDayNumber() {
79
		return dayNumber;
80
	}
81
 
82
	public void setDayNumber(int dayNumber) {
83
		this.dayNumber = dayNumber;
84
	}
85
 
86
	public LocalDate getScheduleDate() {
87
		return scheduleDate;
88
	}
89
 
90
	public void setScheduleDate(LocalDate scheduleDate) {
91
		this.scheduleDate = scheduleDate;
92
	}
93
 
94
	public LocalDate getEndDate() {
95
		return endDate;
96
	}
97
 
98
	public void setEndDate(LocalDate endDate) {
99
		this.endDate = endDate;
100
	}
101
 
102
	public Double getTotalDistanceKm() {
103
		return totalDistanceKm;
104
	}
105
 
106
	public void setTotalDistanceKm(Double totalDistanceKm) {
107
		this.totalDistanceKm = totalDistanceKm;
108
	}
109
 
110
	public Integer getTotalTimeMins() {
111
		return totalTimeMins;
112
	}
113
 
114
	public void setTotalTimeMins(Integer totalTimeMins) {
115
		this.totalTimeMins = totalTimeMins;
116
	}
117
 
118
	public String getEndAction() {
119
		return endAction;
120
	}
121
 
122
	public void setEndAction(String endAction) {
123
		this.endAction = endAction;
124
	}
125
 
126
	public String getStartLocationName() {
127
		return startLocationName;
128
	}
129
 
130
	public void setStartLocationName(String startLocationName) {
131
		this.startLocationName = startLocationName;
132
	}
133
 
134
	public String getStartLatitude() {
135
		return startLatitude;
136
	}
137
 
138
	public void setStartLatitude(String startLatitude) {
139
		this.startLatitude = startLatitude;
140
	}
141
 
142
	public String getStartLongitude() {
143
		return startLongitude;
144
	}
145
 
146
	public void setStartLongitude(String startLongitude) {
147
		this.startLongitude = startLongitude;
148
	}
149
 
150
	public String getStayLocationName() {
151
		return stayLocationName;
152
	}
153
 
154
	public void setStayLocationName(String stayLocationName) {
155
		this.stayLocationName = stayLocationName;
156
	}
157
 
158
	public String getStayLatitude() {
159
		return stayLatitude;
160
	}
161
 
162
	public void setStayLatitude(String stayLatitude) {
163
		this.stayLatitude = stayLatitude;
164
	}
165
 
166
	public String getStayLongitude() {
167
		return stayLongitude;
168
	}
169
 
170
	public void setStayLongitude(String stayLongitude) {
171
		this.stayLongitude = stayLongitude;
172
	}
173
 
174
	public List<java.util.Map<String, Object>> getPartnerStops() {
175
		return partnerStops;
176
	}
177
 
178
	public void setPartnerStops(List<java.util.Map<String, Object>> partnerStops) {
179
		this.partnerStops = partnerStops;
180
	}
181
 
182
	public List<java.util.Map<String, Object>> getLeadStops() {
183
		return leadStops;
184
	}
185
 
186
	public void setLeadStops(List<java.util.Map<String, Object>> leadStops) {
187
		this.leadStops = leadStops;
188
	}
189
}