|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.geomobile.joined.api.client.JOAbstractClient
public abstract class JOAbstractClient
This class is the base class for the JOClient implementation.
| Constructor Summary | |
|---|---|
JOAbstractClient()
|
|
| Method Summary | |
|---|---|
abstract void |
acceptFriend(JOUser user,
JOFriend friend)
This method accepts the friend invitation of another user. |
abstract void |
addFriend(JOUser user,
JOFriend friend)
This method sends a friends invitation to another user. |
abstract void |
delete(JOUser user)
This method deletes an existing user at the Joined server. |
abstract void |
deleteFriend(JOUser user,
JOFriend friend)
This method deletes a friend from the list of friends. |
abstract void |
deleteMessages(JOUser user)
This method deletes all messages in the inbox of the logged in user. |
abstract List<JOFriend> |
getFriends(JOUser user)
This method get the friends of an user from the Joined server. |
abstract List<JOMessage> |
getMessages(JOUser user)
This method returns a list of all available message from the inbox of the logged in user. |
abstract JOUser |
login(String username,
String password)
This method enables users to login at the Joined server. |
abstract void |
logout(JOUser user)
This method enables users to logout at the Joined server. |
abstract JOUser |
register(String username,
String password)
This method creates a new user at the Joined server. |
abstract List<JOFriend> |
searchFriends(JOUser user,
String nickname)
This method searches other users at the Joined server. |
abstract void |
sendMessage(JOUser user,
JOFriend friend,
String message)
This method sends a text message to a friend. |
abstract void |
updatePosition(JOUser user,
double latitude,
double longitude)
This method updates the position of the user at the Joined server. |
abstract 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 |
| Constructor Detail |
|---|
public JOAbstractClient()
| Method Detail |
|---|
public abstract JOUser register(String username,
String password)
throws JOFriendFinderHTTPException,
JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderConflictException
username - 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 abstract void delete(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderUnexpectedException,
JOFriendFinderServerException,
JOFriendFinderConflictException
user - The JOUser object that represents the logged in user.
JOFriendFinderHTTPException
JOFriendFinderUnexpectedException
JOFriendFinderServerException
JOFriendFinderConflictException
public abstract JOUser login(String username,
String password)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
username - The name of the user.password - The password of the user.
JOUser object that represents the logged in user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public abstract void logout(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - The JOUser object that represents the logged in user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public abstract void updatePosition(JOUser user,
double latitude,
double longitude)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - 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 abstract void updateStatus(JOUser user,
boolean active)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - 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 abstract List<JOFriend> getFriends(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - The JOUser object that represents the logged in user.
JOFriend objects, each representing one friend of the user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public abstract List<JOFriend> searchFriends(JOUser user,
String nickname)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - The JOUser object that represents the logged in user.nickname - The nickname other users.
JOFriend objects.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public abstract void addFriend(JOUser user,
JOFriend friend)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException,
JOFriendFinderSourceException
user - The JOUser object that represents the logged in user.friend - The JOFriend object that represents the other user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
JOFriendFinderSourceException
public abstract void acceptFriend(JOUser user,
JOFriend friend)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - The JOUser object that represents the logged in user.friend - The JOFriend object that represents the other user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public abstract void deleteFriend(JOUser user,
JOFriend friend)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - The JOUser object that represents the logged in user.friend - The JOUser object that represents the other user.
JOFriendFinderHTTPException
JOFriendFinderServerException
JOFriendFinderUnexpectedException
JOFriendFinderLoginException
public abstract void sendMessage(JOUser user,
JOFriend friend,
String message)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - 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 abstract List<JOMessage> getMessages(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - 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 abstract void deleteMessages(JOUser user)
throws JOFriendFinderHTTPException,
JOFriendFinderServerException,
JOFriendFinderUnexpectedException,
JOFriendFinderLoginException
user - 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 | |||||||||