-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProperty.java
112 lines (88 loc) · 2.02 KB
/
Property.java
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
package estate;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "property")
public class Property implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private int district;
private int rooms;
private int price;
private String type;
private long startTime;
private long endTime;
private int highestBid = 0;
private boolean sold = false;
public Property(){}
public Property(String name, int district, int rooms, int price, String type){
this.setName(name);
this.setDistrict(district);
this.setRooms(rooms);
this.setPrice(price);
this.setType(type);
}
public String getName() {
return name;
}
@XmlElement
public void setName(String name) {
this.name = name;
}
public int getDistrict() {
return district;
}
@XmlElement
public void setDistrict(int district) {
this.district = district;
}
public int getRooms() {
return rooms;
}
@XmlElement
public void setRooms(int rooms) {
this.rooms = rooms;
}
public int getPrice() {
return price;
}
@XmlElement
public void setPrice(int price) {
this.price = price;
}
public String getType() {
return type;
}
@XmlElement
public void setType(String type) {
this.type = type;
}
public long getStartTime() {
return this.startTime;
}
@XmlElement
public void setStartTime(long startTime) {
this.startTime = startTime;
}
public long getEndTime() {
return this.endTime;
}
@XmlElement
public void setEndTime(long endTime) {
this.endTime = endTime;
}
public int getBid() {
return highestBid;
}
@XmlElement
public void setBid(int highestBid) {
this.highestBid = highestBid;
}
public boolean getSold() {
return sold;
}
@XmlElement
public void setSold(boolean sold) {
this.sold = sold;
}
}