Commit 5786460a authored by Manuel A Gauto's avatar Manuel A Gauto
Browse files

Start API interface

parent 806048e5
public enum BookCondition{
LIKE_NEW("Like New"),
VERY_GOOD("Very Good"),
String value;
BookCondition(String value){
this.value = value;
public BookCondition fromAPI(String fromAPIVal){
for(BookCondition bc : BookCondition.values()){
return bc;
return null;
public void toString(){
return this.value;
\ No newline at end of file
public interface BookshareAPI {
\ No newline at end of file
public class Listing {
private Seller seller;
private String title;
private String author;
private String isbn;
\ No newline at end of file
public class Seller {
private int id;
private String fullName;
private String username;
private String email;
private int rating;
\ No newline at end of file
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