SeatBean.java
1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package com.cnlive.goldenline.ui.model;
/**
* Description:座位信息
* Created on 2017/3/14
* Author : 萧
*/
public class SeatBean {
int screen = -1;
int x = -1;
int y = -1;
boolean isChecked;
public SeatBean() {
}
public SeatBean(int x, int y, boolean isChecked) {
this.x = x;
this.y = y;
this.isChecked = isChecked;
}
public SeatBean(int screen, int x, int y, boolean isChecked) {
this.screen = screen;
this.x = x;
this.y = y;
this.isChecked = isChecked;
}
public boolean isEmpty() {
return screen == -1 || x == -1 || y == -1;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public boolean isChecked() {
return isChecked;
}
public void setChecked(boolean checked) {
isChecked = checked;
}
public int getScreen() {
return screen;
}
public void setScreen(int screen) {
this.screen = screen;
}
@Override
public String toString() {
return "SeatBean{" +
"screen=" + screen +
", x=" + x +
", y=" + y +
", isChecked=" + isChecked +
'}';
}
public void clear() {
this.x = -1;
this.y = -1;
screen = -1;
}
}