|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.geomobile.joined.api.client.JOAbstractClient
de.geomobile.joined.api.client.JOClient
public class JOClient
This class contains various methods for accessing the Joined server.
| Method Summary | |
|---|---|
void |
acceptFriend(JOUser user,
JOFriend friend)
This method accepts the friend invitation of another user. |
void |
addFriend(JOUser user,
JOFriend friend)
This method sends a friends invitation to another user. |
static JOClient |
createJoinedClient(String pJoinedServerUrl,
String joinedApiKey)
This method enables users to create an easy to use client for the Joined server. |
void |
delete(JOUser user)
This method deletes an existing user at the Joined server. |
void |
deleteFriend(JOUser user,
JOFriend friend)
This method deletes a friend from the list of friends. |
void |
deleteMessages(JOUser user)
This method deletes all messages in the inbox of the logged in user. |
List<JOFriend> |
getFriends(JOUser user)
This method get the friends of an user from the Joined server. |
List<JOMessage> |
getMessages(JOUser user)
This method returns a list of all available message from the inbox of the logged in user. |
JOUser |
login(String username,
String password)
This method enables users to login at the Joined server. |
void |
logout(JOUser user)
This method enables users to logout at the Joined server. |
JOUser |
register(String username,
String password)
This method creates a new user at the Joined server. |
List<JOFriend> |
searchFriends(JOUser user,
String nickname)
This method searches other users at the Joined server. |
void |
sendMessage(JOUser user,
JOFriend friend,
String message)
This method sends a text message to a friend. |
void |
updatePosition(JOUser user,
double latitude,
double longitude)
This method updates the position of the user at the Joined server. |
void |
updateStatus(JOUser user,
boolean active)
This method updates the status of the user at the Joined server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JOClient createJoinedClient(String pJoinedServerUrl,
String joinedApiKey)
pJoinedServerUrl - The URL of the Joined server.joinedSecretSalt - The secret salt for accessing the Joined server.
public JOUser register(String username,
String password)
throws JOFriendFinderHTTPException,
JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderConflictException
JOAbstractClient
register in class JOAbstractClientusername - The name for the new user.password - The password for the new user.
JOUser object that represents the logged in user.
JOFriendFinderHTTPException
JOFriendFinderUnexpectedException
JOFriendFinderServerException
JOFriendFinderConflictException
public void delete(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderConflictException
JOAbstractClient
delete in class JOAbstractClientuser - The JOUser object that represents the logged in user.
JOFriendFinderHTTPException
JOFriendFinderUnexpectedException
JOFriendFinderServerException
JOFriendFinderConflictException
public void logout(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
logout in class JOAbstractClientuser - The JOUser object that represents the logged in user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public JOUser login(String username,
String password)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
login in class JOAbstractClientusername - The name of the user.password - The password of the user.
JOUser object that represents the logged in user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public void updatePosition(JOUser user,
double latitude,
double longitude)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
updatePosition in class JOAbstractClientuser - The JOUser object that represents the logged in user.latitude - The position of the user (latitude coordinate).longitude - The position of the user (longitude coordinate).
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public void updateStatus(JOUser user,
boolean active)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
updateStatus in class JOAbstractClientuser - The JOUser object that represents the logged in user.active - The status of the user (true for active and visible, false for inactive and invisible).
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public List<JOFriend> getFriends(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
getFriends in class JOAbstractClientuser - The JOUser object that represents the logged in user.
JOFriend objects, each representing one friend of the user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public List<JOFriend> searchFriends(JOUser user,
String nickname)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
searchFriends in class JOAbstractClientuser - The JOUser object that represents the logged in user.nickname - The nickname other users.
JOFriend objects.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public void addFriend(JOUser user,
JOFriend friend)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException,
JOFriendFinderSourceException
JOAbstractClient
addFriend in class JOAbstractClientuser - The JOUser object that represents the logged in user.friend - The JOFriend object that represents the other user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
JOFriendFinderSourceException
public void acceptFriend(JOUser user,
JOFriend friend)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
acceptFriend in class JOAbstractClientuser - The JOUser object that represents the logged in user.friend - The JOFriend object that represents the other user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public void deleteFriend(JOUser user,
JOFriend friend)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
deleteFriend in class JOAbstractClientuser - The JOUser object that represents the logged in user.friend - The JOUser object that represents the other user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public void sendMessage(JOUser user,
JOFriend friend,
String message)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
sendMessage in class JOAbstractClientuser - The JOUser object that represents the logged in user.friend - The JOFriend object that represents the friend.message - The text message.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public List<JOMessage> getMessages(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
getMessages in class JOAbstractClientuser - The JOUser object that represents the logged in user.
JOMessage objects, each representing a message from the inbox of the logged in user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public void deleteMessages(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
JOAbstractClient
deleteMessages in class JOAbstractClientuser - The JOUser object that represents the logged in user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||