Commit 3589d8ee authored by Manuel A Gauto's avatar Manuel A Gauto

Add all fields to Listing model

parent 5786460a
......@@ -11,6 +11,7 @@ public enum BookCondition{
this.value = value;
//We'll keep this for now...Don't ask questions...
public BookCondition fromAPI(String fromAPIVal){
for(BookCondition bc : BookCondition.values()){
public class Listing {
private Seller seller;
private Date dateCreated;
private Date dateSold;
private String description;
private double price;
private boolean sold;
private boolean active;
private double finalPrice;
//Url to image
private String image;
private String title;
private String author;
private String isbn;
private int year;
private String edition;
private BookCondition bookCondition;
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment