Commit 09d61512 authored by Manuel A Gauto's avatar Manuel A Gauto

Add methods to api interface

parent aed0fcf2
package edu.gmu.srct.bookshare.api;
public interface BookshareAPI {
public Seller getSeller(int id);
public Listing getListing(int id);
public Listing[] getListing(int start, int end);
public Listing[] getListingByISDN(String isdn);
public Listing[] getListingByTitle(String title);
public boolean pushListing(Listing listing);
}
\ No newline at end of file
......@@ -3,6 +3,7 @@ package edu.gmu.srct.bookshare.api;
import java.util.Date;
public class Listing {
private int id;
private Seller seller;
private Date dateCreated;
private Date dateSold;
......@@ -21,6 +22,14 @@ public class Listing {
private String edition;
private BookCondition bookCondition;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Seller getSeller() {
return seller;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment