|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.geomobile.joined.api.service.JOWebService
public class JOWebService
| Constructor Summary | |
|---|---|
JOWebService()
|
|
| Method Summary | |
|---|---|
String |
acceptFriend(String userId,
String secureToken,
String friendId)
Accept a friend invitation. |
void |
activateUser(String userId,
String secureToken,
boolean active)
Activate or deactivate user |
void |
addFriend(String userId,
String secureToken,
String friendId)
Add a friend. |
static JOWebService |
createJoinedService(String joinedServerUrl,
String joinedApiKey)
|
boolean |
deleteFriend(String userId,
String secureToken,
String friendId)
Delete a friend. |
void |
deleteMessages(String userId,
String secureToken)
Deletes all Messages from Server of the User as recipient in the DB. |
void |
deleteUser(String userId,
String secureToken)
Delete current user |
String |
ffLogin(String username,
String password)
|
String |
ffRegister(String name,
String password)
Register for FriendFinder users. |
String |
getFriends(String userId,
String secureToken)
|
String |
getJoinedApiKey()
|
String |
getJoinedServerUrl()
|
String |
getMessages(String userId,
String secureToken)
Gets all unread Messages of the User. |
void |
logoutUser(String userId,
String secureToken)
User logout. |
String |
searchFriends(String userId,
String secureToken,
String nickname)
Search for users by nickname |
String |
sendMessage(String userId,
String secureToken,
String friendsId,
String msg)
Send a text message to friend |
void |
setJoinedApiKey(String joinedApiKey)
|
void |
setJoinedServerUrl(String joinedServerUrl)
|
void |
updateUser(String userId,
String secureToken,
double latitude,
double longitude)
Update users current location |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JOWebService()
| Method Detail |
|---|
public static JOWebService createJoinedService(String joinedServerUrl,
String joinedApiKey)
joinedServerUrl - joinedSecretSalt -
public String getJoinedServerUrl()
public void setJoinedServerUrl(String joinedServerUrl)
joinedServerUrl - public String getJoinedApiKey()
public void setJoinedApiKey(String joinedApiKey)
joinedSecretSalt -
public String ffRegister(String name,
String password)
throws JOFriendFinderHTTPException,
JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderConflictException
name - The users nickname.password - The users password.profilImage - The users profile image exists.
JOFriendFinderHTTPException - when another exception runs
JOFriendFinderUnexpectedException
JOFriendFinderServerException
JOFriendFinderConflictException - when nickname already exists
public String ffLogin(String username,
String password)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
name - username -
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public String getFriends(String userId,
String secureToken)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
userId - secureToken -
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public void addFriend(String userId,
String secureToken,
String friendId)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderSourceException
userId - The users id.secureToken - The users secureToken.friendId - The friends id to add.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderSourceException
public String acceptFriend(String userId,
String secureToken,
String friendId)
throws JOFriendFinderHTTPException,
JOFriendFinderUnexpectedException,
JOFriendFinderServerException
userId - The users id.secureToken - The users secureToken.friendId - The friends id to add.
JOFriendFinderHTTPException
JOFriendFinderUnexpectedException
JOFriendFinderServerException
public boolean deleteFriend(String userId,
String secureToken,
String friendId)
throws JOFriendFinderHTTPException,
JOFriendFinderUnexpectedException,
JOFriendFinderServerException
userId - The users id.secureToken - The users secureToken.friendId - The friend's id to delete.
JOFriendFinderHTTPException
JOFriendFinderUnexpectedException
JOFriendFinderServerException
public String searchFriends(String userId,
String secureToken,
String nickname)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException
userId - The users id.secureToken - The users secureToken.nickname - The friend's nickname to search.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
public void updateUser(String userId,
String secureToken,
double latitude,
double longitude)
throws JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderHTTPException
userId - The users id.secureToken - The users secureToken.latitude - longitude -
JOFriendFinderUnexpectedException
JOFriendFinderServerException
JOFriendFinderHTTPException
public void activateUser(String userId,
String secureToken,
boolean active)
throws JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderHTTPException
userId - The users id.secureToken - The users secureToken.active - active or deactive
JOFriendFinderUnexpectedException
JOFriendFinderServerException
JOFriendFinderHTTPException
public void logoutUser(String userId,
String secureToken)
throws JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderHTTPException
userId - The users id.secureToken - The users secureToken.
JOFriendFinderUnexpectedException
JOFriendFinderServerException
JOFriendFinderHTTPException
public void deleteUser(String userId,
String secureToken)
throws JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderHTTPException
userId - The users id.secureToken - The users secureToken.
JOFriendFinderUnexpectedException
JOFriendFinderServerException
JOFriendFinderHTTPException
public String sendMessage(String userId,
String secureToken,
String friendsId,
String msg)
throws JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderHTTPException
userId - The users id.secureToken - The users secureToken.friendsId - The friends id to send this messagemsg - The text message
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderHTTPException
public String getMessages(String userId,
String secureToken)
throws JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderHTTPException
userId - The users id.secureToken - The users secureToken.
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderHTTPException
public void deleteMessages(String userId,
String secureToken)
throws JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderHTTPException
userId - The users id.secureToken - The users secureToken.
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderHTTPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||