1 package org.oxerr.viagogo.model.response.catalog;
2
3 import java.time.OffsetDateTime;
4
5 import org.apache.commons.lang3.builder.EqualsBuilder;
6 import org.apache.commons.lang3.builder.HashCodeBuilder;
7 import org.oxerr.viagogo.model.response.Resource;
8
9
10
11
12
13
14 @io.openapitools.jackson.dataformat.hal.annotation.Resource
15 public class EmbeddedEvent extends Resource {
16
17 private static final long serialVersionUID = 2023021301L;
18
19
20
21
22 private Long id;
23
24
25
26
27 private String name;
28
29
30
31
32 private OffsetDateTime startDate;
33
34
35
36
37 private OffsetDateTime endDate;
38
39
40
41
42 private OffsetDateTime onSaleDate;
43
44
45
46
47 private Boolean dateConfirmed;
48
49 public EmbeddedEvent() {
50 }
51
52 public EmbeddedEvent(String name, OffsetDateTime startDate) {
53 this.name = name;
54 this.startDate = startDate;
55 }
56
57 public Long getId() {
58 return id;
59 }
60
61 public void setId(Long id) {
62 this.id = id;
63 }
64
65 public String getName() {
66 return name;
67 }
68
69 public void setName(String name) {
70 this.name = name;
71 }
72
73 public OffsetDateTime getStartDate() {
74 return startDate;
75 }
76
77 public void setStartDate(OffsetDateTime startDate) {
78 this.startDate = startDate;
79 }
80
81 public OffsetDateTime getEndDate() {
82 return endDate;
83 }
84
85 public void setEndDate(OffsetDateTime endDate) {
86 this.endDate = endDate;
87 }
88
89 public OffsetDateTime getOnSaleDate() {
90 return onSaleDate;
91 }
92
93 public void setOnSaleDate(OffsetDateTime onSaleDate) {
94 this.onSaleDate = onSaleDate;
95 }
96
97 public Boolean getDateConfirmed() {
98 return dateConfirmed;
99 }
100
101 public void setDateConfirmed(Boolean dateConfirmed) {
102 this.dateConfirmed = dateConfirmed;
103 }
104
105 @Override
106 public int hashCode() {
107 return HashCodeBuilder.reflectionHashCode(this);
108 }
109
110 @Override
111 public boolean equals(Object obj) {
112 if (this == obj) {
113 return true;
114 }
115 if (!(obj instanceof EmbeddedEvent)) {
116 return false;
117 }
118 EmbeddedEvent rhs = (EmbeddedEvent) obj;
119 return EqualsBuilder.reflectionEquals(this, rhs);
120 }
121
122 }