View Javadoc
1   package org.oxerr.viagogo.model;
2   
3   import java.io.Serializable;
4   import java.util.List;
5   
6   import org.apache.commons.lang3.builder.EqualsBuilder;
7   import org.apache.commons.lang3.builder.HashCodeBuilder;
8   
9   public class BarcodeInformation implements Serializable {
10  
11  	private static final long serialVersionUID = 2023021301L;
12  
13  	/**
14  	 * An ordinal number for a seat.
15  	 */
16  	private Long seatOrdinal;
17  
18  	/**
19  	 * Seat number.
20  	 */
21  	private String seat;
22  
23  	/**
24  	 * Row of ticket.
25  	 */
26  	private String row;
27  
28  	/**
29  	 * Status of the barcode. Can be {@code Received} or {@code FailedValidation}
30  	 */
31  	private String status;
32  
33  	/**
34  	 * Barcode(s) values for this seat.
35  	 */
36  	private List<String> barcodeValues;
37  
38  	/**
39  	 * SHA256-hashed barcode(s) for this seat.
40  	 */
41  	private List<String> barcodeValuesSha256Hashed;
42  
43  	public Long getSeatOrdinal() {
44  		return seatOrdinal;
45  	}
46  
47  	public void setSeatOrdinal(Long seatOrdinal) {
48  		this.seatOrdinal = seatOrdinal;
49  	}
50  
51  	public String getSeat() {
52  		return seat;
53  	}
54  
55  	public void setSeat(String seat) {
56  		this.seat = seat;
57  	}
58  
59  	public String getRow() {
60  		return row;
61  	}
62  
63  	public void setRow(String row) {
64  		this.row = row;
65  	}
66  
67  	public String getStatus() {
68  		return status;
69  	}
70  
71  	public void setStatus(String status) {
72  		this.status = status;
73  	}
74  
75  	public List<String> getBarcodeValues() {
76  		return barcodeValues;
77  	}
78  
79  	public void setBarcodeValues(List<String> barcodeValues) {
80  		this.barcodeValues = barcodeValues;
81  	}
82  
83  	public List<String> getBarcodeValuesSha256Hashed() {
84  		return barcodeValuesSha256Hashed;
85  	}
86  
87  	public void setBarcodeValuesSha256Hashed(List<String> barcodeValuesSha256Hashed) {
88  		this.barcodeValuesSha256Hashed = barcodeValuesSha256Hashed;
89  	}
90  
91  	@Override
92  	public int hashCode() {
93  		return HashCodeBuilder.reflectionHashCode(this);
94  	}
95  
96  	@Override
97  	public boolean equals(Object obj) {
98  		if (this == obj) {
99  			return true;
100 		}
101 		if (!(obj instanceof BarcodeInformation)) {
102 			return false;
103 		}
104 		BarcodeInformation rhs = (BarcodeInformation) obj;
105 		return EqualsBuilder.reflectionEquals(this, rhs);
106 	}
107 
108 }