Commit 98e5eb28 authored by Manuel A Gauto's avatar Manuel A Gauto

Fix Syntax

parent 3589d8ee
package edu.gmu.srct.bookshare.api;
public enum BookCondition{
NEW("New"),
LIKE_NEW("Like New"),
......@@ -14,14 +16,14 @@ public enum BookCondition{
//We'll keep this for now...Don't ask questions...
public BookCondition fromAPI(String fromAPIVal){
for(BookCondition bc : BookCondition.values()){
if(bc.toString.equals(fromAPIVal)){
if(bc.toString().equals(fromAPIVal)){
return bc;
}
}
return null;
}
public void toString(){
public String toString(){
return this.value;
}
}
\ No newline at end of file
package edu.gmu.srct.bookshare.api;
public interface BookshareAPI {
}
\ No newline at end of file
package edu.gmu.srct.bookshare.api;
import java.util.Date;
public class Listing {
private Seller seller;
private Date dateCreated;
......@@ -18,4 +22,5 @@ public class Listing {
private BookCondition bookCondition;
}
\ No newline at end of file
package edu.gmu.srct.bookshare.api;
public class Seller {
private int id;
private String fullName;
......
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