Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bookshare-android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
bookshare-android
Commits
5786460a
Commit
5786460a
authored
Mar 08, 2014
by
Manuel A Gauto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start API interface
parent
806048e5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
0 deletions
+43
-0
bookshare-android/src/edu/gmu/srct/bookshare/api/BookCondition.java
...android/src/edu/gmu/srct/bookshare/api/BookCondition.java
+26
-0
bookshare-android/src/edu/gmu/srct/bookshare/api/BookshareAPI.java
...-android/src/edu/gmu/srct/bookshare/api/BookshareAPI.java
+2
-0
bookshare-android/src/edu/gmu/srct/bookshare/api/Listing.java
...share-android/src/edu/gmu/srct/bookshare/api/Listing.java
+6
-0
bookshare-android/src/edu/gmu/srct/bookshare/api/Seller.java
bookshare-android/src/edu/gmu/srct/bookshare/api/Seller.java
+9
-0
No files found.
bookshare-android/src/edu/gmu/srct/bookshare/api/BookCondition.java
0 → 100644
View file @
5786460a
public
enum
BookCondition
{
NEW
(
"New"
),
LIKE_NEW
(
"Like New"
),
VERY_GOOD
(
"Very Good"
),
GOOD
(
"Good"
),
ACCEPTABLE
(
"Acceptable"
),
UNACCEPTABLE
(
"Unacceptable"
);
String
value
;
BookCondition
(
String
value
){
this
.
value
=
value
;
}
public
BookCondition
fromAPI
(
String
fromAPIVal
){
for
(
BookCondition
bc
:
BookCondition
.
values
()){
if
(
bc
.
toString
.
equals
(
fromAPIVal
)){
return
bc
;
}
}
return
null
;
}
public
void
toString
(){
return
this
.
value
;
}
}
\ No newline at end of file
bookshare-android/src/edu/gmu/srct/bookshare/api/BookshareAPI.java
0 → 100644
View file @
5786460a
public
interface
BookshareAPI
{
}
\ No newline at end of file
bookshare-android/src/edu/gmu/srct/bookshare/api/Listing.java
0 → 100644
View file @
5786460a
public
class
Listing
{
private
Seller
seller
;
private
String
title
;
private
String
author
;
private
String
isbn
;
}
\ No newline at end of file
bookshare-android/src/edu/gmu/srct/bookshare/api/Seller.java
0 → 100644
View file @
5786460a
public
class
Seller
{
private
int
id
;
private
String
fullName
;
private
String
username
;
private
String
email
;
private
int
rating
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment