|
@@ -1,19 +1,24 @@
|
|
|
package bidflow.bid.client.dto;
|
|
package bidflow.bid.client.dto;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
public class AuctionView {
|
|
public class AuctionView {
|
|
|
|
|
|
|
|
private String sellerUsername;
|
|
private String sellerUsername;
|
|
|
private String winnerUsername;
|
|
private String winnerUsername;
|
|
|
private String itemName;
|
|
private String itemName;
|
|
|
private Double finalPrice;
|
|
private Double finalPrice;
|
|
|
|
|
+ private List<Bid> bids;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
- public AuctionView(){}
|
|
|
|
|
|
|
+ public AuctionView(){}
|
|
|
|
|
|
|
|
- public AuctionView(String itemName, String sellerUsername, String winnerUsername, Double finalPrice) {
|
|
|
|
|
|
|
+ public AuctionView(String itemName, String sellerUsername, String winnerUsername, Double finalPrice, List<Bid> bids) {
|
|
|
this.sellerUsername = sellerUsername;
|
|
this.sellerUsername = sellerUsername;
|
|
|
this.winnerUsername = winnerUsername;
|
|
this.winnerUsername = winnerUsername;
|
|
|
this.itemName = itemName;
|
|
this.itemName = itemName;
|
|
|
this.finalPrice = finalPrice;
|
|
this.finalPrice = finalPrice;
|
|
|
|
|
+ this.bids = bids;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public String getSellerUsername() {
|
|
public String getSellerUsername() {
|
|
@@ -48,6 +53,14 @@ public class AuctionView {
|
|
|
this.finalPrice = finalPrice;
|
|
this.finalPrice = finalPrice;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public List<Bid> getBids() {
|
|
|
|
|
+ return bids;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setBids(List<Bid> bids) {
|
|
|
|
|
+ this.bids = bids;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|