MobColl
 All Classes Functions
Static Public Member Functions | List of all members
com.mobcoll.servercomm.ServerCom Class Reference

Static Public Member Functions

static JSONObject sendLoginRequest (String userName, String password)
 
static JSONObject getUserCategories (int userId)
 
static JSONObject getUserAllAlbums (int userId)
 
static JSONObject getUserAlbumsByCategory (int userId, String categoryName)
 
static JSONObject getAlbumInfo (int albumId)
 
static String addCategory (int userId, String categoryName)
 
static boolean sendAddAlbumReq (String barcodeNumber, int userId)
 
static JSONObject getSongsByAlbumId (int albumId)
 
static JSONObject getAlbumsByBarcode (String barcode)
 
static JSONObject getAlbumsByAlbumName (String albumName)
 
static JSONObject getAlbumsByArtistName (String artistName)
 
static String deleteAlbumByIdCategory (int userId, int albumId, String categoryName)
 
static String addAlbumByIdCategory (int userId, int albumId, String categoryName)
 
static JSONObject sendFacebookLoginRequest (String userName, String name, String surname, String email, int gender, String birthday)
 
static String incrementLike (int albumId, int userId)
 
static String getLikeCount (int albumId)
 

Detailed Description

This class makes the connection of Server Side and Client Side.

Member Function Documentation

static String com.mobcoll.servercomm.ServerCom.addAlbumByIdCategory ( int  userId,
int  albumId,
String  categoryName 
)
inlinestatic

Adds a new album to the specified category.

Parameters
userId
albumId
categoryName
Returns
static String com.mobcoll.servercomm.ServerCom.addCategory ( int  userId,
String  categoryName 
)
inlinestatic

Sends request to add a new category for a user.

Parameters
userId
categoryName
Returns
static String com.mobcoll.servercomm.ServerCom.deleteAlbumByIdCategory ( int  userId,
int  albumId,
String  categoryName 
)
inlinestatic

Deletes an album in the server side.

Parameters
userId
albumId
categoryName
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.getAlbumInfo ( int  albumId)
inlinestatic

Gets the information about a specified album from server side.

Parameters
albumId
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.getAlbumsByAlbumName ( String  albumName)
inlinestatic

Get an album by its album name from the server side.

Parameters
albumName
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.getAlbumsByArtistName ( String  artistName)
inlinestatic

Get an album by artist name from the server side.

Parameters
artistName
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.getAlbumsByBarcode ( String  barcode)
inlinestatic

Get an album by its barcode from the server side.

Parameters
barcode
Returns
static String com.mobcoll.servercomm.ServerCom.getLikeCount ( int  albumId)
inlinestatic

Gets the like count of an album.

Parameters
albumId
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.getSongsByAlbumId ( int  albumId)
inlinestatic

Gets the songs of an album from server side.

Parameters
albumId
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.getUserAlbumsByCategory ( int  userId,
String  categoryName 
)
inlinestatic

Gets all albums of user in the specified category from server side.

Parameters
userId
categoryName
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.getUserAllAlbums ( int  userId)
inlinestatic

Gets all albums of user from server side.

Parameters
userId
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.getUserCategories ( int  userId)
inlinestatic

Gets the user categories from server side.

Parameters
userId
Returns
static String com.mobcoll.servercomm.ServerCom.incrementLike ( int  albumId,
int  userId 
)
inlinestatic

Increments the like count of an album.

Parameters
albumId
userId
Returns
static boolean com.mobcoll.servercomm.ServerCom.sendAddAlbumReq ( String  barcodeNumber,
int  userId 
)
inlinestatic

Sends adding a new album request for a user.

Parameters
barcodeNumber
userId
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.sendFacebookLoginRequest ( String  userName,
String  name,
String  surname,
String  email,
int  gender,
String  birthday 
)
inlinestatic

Sends login request with Facebook.

Parameters
userName
name
surname
email
gender
birthday
Returns
static JSONObject com.mobcoll.servercomm.ServerCom.sendLoginRequest ( String  userName,
String  password 
)
inlinestatic

Sends login request to server side.

Parameters
userName
password
Returns

The documentation for this class was generated from the following file: