-
Notifications
You must be signed in to change notification settings - Fork 0
/
SOBItem.java
84 lines (79 loc) · 1.84 KB
/
SOBItem.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
package sobs;
public class SOBItem {
private int transactionLimit;
private int buyNowPrice;
private SOBClient seller;
private SOBClient currBidder;
private String name;
private String description;
private int currBid;
private boolean isSold;
private int itemNumber;
private int bidNumber;
public int getItemNumber() {
return itemNumber;
}
public void setItemNumber(int itemNumber) {
this.itemNumber = itemNumber;
}
public int getTransactionLimit() {
return transactionLimit;
}
public void setTransactionLimit(int transactionLimit) {
this.transactionLimit = transactionLimit;
}
public int getBuyNowPrice() {
return buyNowPrice;
}
public void setBuyNowPrice(int buyNowPrice) {
this.buyNowPrice = buyNowPrice;
}
public SOBClient getSeller() {
return seller;
}
public void setSeller(SOBClient seller) {
this.seller = seller;
}
public SOBClient getCurrBidder() {
return currBidder;
}
public void setCurrBidder(SOBClient currBidder) {
this.currBidder = currBidder;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public boolean isSold() {
return isSold;
}
public void setSold(boolean isSold) {
this.isSold = isSold;
}
public int getCurrBid() {
return currBid;
}
public void setCurrBid(int currBid) {
this.currBid = currBid;
}
public String printItem(){
return this.itemNumber + " " + this.name + " " + this.seller.getUsername() + " " + this.currBid + " " + this.buyNowPrice + " " + this.description;
}
public int getBidNumber() {
return bidNumber;
}
public void setBidNumber(int bidNumber) {
this.bidNumber = bidNumber;
}
public void incrementBidNumber() {
this.bidNumber = bidNumber + 1;
}
}