| 30416 |
tejbeer |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
public class TicketViewModel {
|
|
|
6 |
|
|
|
7 |
private int id;
|
| 32923 |
ranu |
8 |
private int fofoId;
|
| 30416 |
tejbeer |
9 |
private String categoryName;
|
|
|
10 |
private String subCategoryName;
|
| 32923 |
ranu |
11 |
private String message;
|
|
|
12 |
private String partnerName;
|
|
|
13 |
private String createdBy;
|
|
|
14 |
private String mobileNumber;
|
| 30416 |
tejbeer |
15 |
private LocalDateTime createdTimestamp;
|
| 35626 |
amit |
16 |
private boolean unread;
|
|
|
17 |
private String lastActivityMessage;
|
|
|
18 |
private LocalDateTime lastActivityTimestamp;
|
| 30416 |
tejbeer |
19 |
|
|
|
20 |
public TicketViewModel(int id, String categoryName, String subCategoryName, LocalDateTime createdTimestamp) {
|
|
|
21 |
super();
|
|
|
22 |
this.id = id;
|
|
|
23 |
this.categoryName = categoryName;
|
|
|
24 |
this.subCategoryName = subCategoryName;
|
|
|
25 |
this.createdTimestamp = createdTimestamp;
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
public TicketViewModel() {
|
|
|
29 |
super();
|
|
|
30 |
// TODO Auto-generated constructor stub
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public int getId() {
|
|
|
34 |
return id;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public void setId(int id) {
|
|
|
38 |
this.id = id;
|
|
|
39 |
}
|
|
|
40 |
|
| 32923 |
ranu |
41 |
public int getFofoId() {
|
|
|
42 |
return fofoId;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
public void setFofoId(int fofoId) {
|
|
|
46 |
this.fofoId = fofoId;
|
|
|
47 |
}
|
|
|
48 |
|
| 30416 |
tejbeer |
49 |
public String getCategoryName() {
|
|
|
50 |
return categoryName;
|
|
|
51 |
}
|
|
|
52 |
|
| 32923 |
ranu |
53 |
public String getPartnerName() {
|
|
|
54 |
return partnerName;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public void setPartnerName(String partnerName) {
|
|
|
58 |
this.partnerName = partnerName;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public String getCreatedBy() {
|
|
|
62 |
return createdBy;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public String getMobileNumber() {
|
|
|
66 |
return mobileNumber;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public void setMobileNumber(String mobileNumber) {
|
|
|
70 |
this.mobileNumber = mobileNumber;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public void setCreatedBy(String createdBy) {
|
|
|
74 |
this.createdBy = createdBy;
|
|
|
75 |
}
|
|
|
76 |
|
| 30416 |
tejbeer |
77 |
public void setCategoryName(String categoryName) {
|
|
|
78 |
this.categoryName = categoryName;
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
public String getSubCategoryName() {
|
|
|
82 |
return subCategoryName;
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
public void setSubCategoryName(String subCategoryName) {
|
|
|
86 |
this.subCategoryName = subCategoryName;
|
|
|
87 |
}
|
| 32923 |
ranu |
88 |
public String getMessage() {
|
|
|
89 |
return message;
|
|
|
90 |
}
|
| 30416 |
tejbeer |
91 |
|
| 32923 |
ranu |
92 |
public void setMessage(String Message) {
|
|
|
93 |
this.message = Message;
|
|
|
94 |
}
|
|
|
95 |
|
| 30416 |
tejbeer |
96 |
public LocalDateTime getCreatedTimestamp() {
|
|
|
97 |
return createdTimestamp;
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
|
|
|
101 |
this.createdTimestamp = createdTimestamp;
|
|
|
102 |
}
|
|
|
103 |
|
| 35626 |
amit |
104 |
public boolean isUnread() {
|
|
|
105 |
return unread;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
public void setUnread(boolean unread) {
|
|
|
109 |
this.unread = unread;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
public String getLastActivityMessage() {
|
|
|
113 |
return lastActivityMessage;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
public void setLastActivityMessage(String lastActivityMessage) {
|
|
|
117 |
this.lastActivityMessage = lastActivityMessage;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
public LocalDateTime getLastActivityTimestamp() {
|
|
|
121 |
return lastActivityTimestamp;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public void setLastActivityTimestamp(LocalDateTime lastActivityTimestamp) {
|
|
|
125 |
this.lastActivityTimestamp = lastActivityTimestamp;
|
|
|
126 |
}
|
|
|
127 |
|
| 30416 |
tejbeer |
128 |
@Override
|
|
|
129 |
public int hashCode() {
|
|
|
130 |
final int prime = 31;
|
|
|
131 |
int result = 1;
|
|
|
132 |
result = prime * result + ((categoryName == null) ? 0 : categoryName.hashCode());
|
|
|
133 |
result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
|
|
|
134 |
result = prime * result + id;
|
| 32923 |
ranu |
135 |
result = prime * result + fofoId;
|
| 30416 |
tejbeer |
136 |
result = prime * result + ((subCategoryName == null) ? 0 : subCategoryName.hashCode());
|
| 32923 |
ranu |
137 |
result = prime * result + ((message == null) ? 0 : message.hashCode());
|
|
|
138 |
result = prime * result + ((partnerName == null) ? 0 : partnerName.hashCode());
|
|
|
139 |
result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
|
|
|
140 |
result = prime * result + ((createdBy == null) ? 0 : createdBy.hashCode());
|
| 30416 |
tejbeer |
141 |
return result;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
@Override
|
|
|
145 |
public boolean equals(Object obj) {
|
|
|
146 |
if (this == obj)
|
|
|
147 |
return true;
|
|
|
148 |
if (obj == null)
|
|
|
149 |
return false;
|
|
|
150 |
if (getClass() != obj.getClass())
|
|
|
151 |
return false;
|
|
|
152 |
TicketViewModel other = (TicketViewModel) obj;
|
|
|
153 |
if (categoryName == null) {
|
|
|
154 |
if (other.categoryName != null)
|
|
|
155 |
return false;
|
|
|
156 |
} else if (!categoryName.equals(other.categoryName))
|
|
|
157 |
return false;
|
|
|
158 |
if (createdTimestamp == null) {
|
|
|
159 |
if (other.createdTimestamp != null)
|
|
|
160 |
return false;
|
|
|
161 |
} else if (!createdTimestamp.equals(other.createdTimestamp))
|
|
|
162 |
return false;
|
|
|
163 |
if (id != other.id)
|
|
|
164 |
return false;
|
| 32923 |
ranu |
165 |
if (fofoId != other.fofoId)
|
|
|
166 |
return false;
|
|
|
167 |
if (mobileNumber != other.mobileNumber)
|
|
|
168 |
return false;
|
| 30416 |
tejbeer |
169 |
if (subCategoryName == null) {
|
|
|
170 |
if (other.subCategoryName != null)
|
|
|
171 |
return false;
|
|
|
172 |
} else if (!subCategoryName.equals(other.subCategoryName))
|
|
|
173 |
return false;
|
| 32923 |
ranu |
174 |
if (message == null) {
|
|
|
175 |
if (other.message != null)
|
|
|
176 |
return false;
|
|
|
177 |
} else if (!message.equals(other.message))
|
|
|
178 |
return false;
|
|
|
179 |
if (partnerName == null) {
|
|
|
180 |
if (other.partnerName != null)
|
|
|
181 |
return false;
|
|
|
182 |
} else if (!partnerName.equals(other.partnerName))
|
|
|
183 |
return false;
|
|
|
184 |
if (createdBy == null) {
|
|
|
185 |
if (other.createdBy != null)
|
|
|
186 |
return false;
|
|
|
187 |
} else if (!createdBy.equals(other.createdBy))
|
|
|
188 |
return false;
|
| 30416 |
tejbeer |
189 |
return true;
|
|
|
190 |
}
|
|
|
191 |
|
|
|
192 |
@Override
|
|
|
193 |
public String toString() {
|
| 32923 |
ranu |
194 |
return "TicketViewModel{" +
|
|
|
195 |
"id=" + id +
|
|
|
196 |
"fofoId=" + fofoId +
|
|
|
197 |
", categoryName='" + categoryName + '\'' +
|
|
|
198 |
", subCategoryName='" + subCategoryName + '\'' +
|
|
|
199 |
", message='" + message + '\'' +
|
|
|
200 |
", partnerName='" + partnerName + '\'' +
|
|
|
201 |
", mobileNumber='" + mobileNumber + '\'' +
|
|
|
202 |
", createdBy='" + createdBy + '\'' +
|
|
|
203 |
", createdTimestamp=" + createdTimestamp +
|
|
|
204 |
'}';
|
| 30416 |
tejbeer |
205 |
}
|
|
|
206 |
|
|
|
207 |
}
|