1 package org.oxerr.viagogo.model.request.inventory;
2
3 import java.io.Serializable;
4 import java.time.LocalDateTime;
5
6 import org.apache.commons.lang3.builder.EqualsBuilder;
7 import org.apache.commons.lang3.builder.HashCodeBuilder;
8
9 public class EventRequest implements Serializable {
10
11 private static final long serialVersionUID = 2023021301L;
12
13
14
15
16 private String name;
17
18
19
20
21 private LocalDateTime startDate;
22
23
24
25
26
27 private Boolean dateConfirmed;
28
29
30
31
32 private String note;
33
34 public EventRequest() {
35 }
36
37 public EventRequest(String name, LocalDateTime startDate) {
38 this.name = name;
39 this.startDate = startDate;
40 }
41
42 public String getName() {
43 return name;
44 }
45
46 public void setName(String name) {
47 this.name = name;
48 }
49
50 public LocalDateTime getStartDate() {
51 return startDate;
52 }
53
54 public void setStartDate(LocalDateTime startDate) {
55 this.startDate = startDate;
56 }
57
58 public Boolean getDateConfirmed() {
59 return dateConfirmed;
60 }
61
62 public void setDateConfirmed(Boolean dateConfirmed) {
63 this.dateConfirmed = dateConfirmed;
64 }
65
66 public String getNote() {
67 return note;
68 }
69
70 public void setNote(String note) {
71 this.note = note;
72 }
73
74 @Override
75 public int hashCode() {
76 return HashCodeBuilder.reflectionHashCode(this);
77 }
78
79 @Override
80 public boolean equals(Object obj) {
81 if (this == obj) {
82 return true;
83 }
84 if (!(obj instanceof EventRequest)) {
85 return false;
86 }
87 EventRequest rhs = (EventRequest) obj;
88 return EqualsBuilder.reflectionEquals(this, rhs);
89 }
90
91 }