|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.geomobile.joined.api.client.AbstractJoinedClient de.geomobile.joined.api.client.JoinedClient
public class JoinedClient
This class contains various methods for accessing the Joined server.
Method Summary | |
---|---|
void |
acceptFriend(User user,
Friend friend)
This method accepts the friend invitation of another user. |
void |
addFriend(User user,
Friend friend)
This methods sends a friends invitation to another user. |
static JoinedClient |
createJoinedClient(String pJoinedServerUrl,
String joinedSecretSalt)
This methods enables users to create an easy to use client for the Joined server. |
void |
delete(User user)
This methods deletes an existing user at the Joined server. |
void |
deleteFriend(User user,
Friend friend)
This method deletes a friend from the list of friends. |
void |
deleteMessages(User user)
This methods deletes all messages in the inbox of the logged in user. |
List<Friend> |
getFriends(User user)
This method get the friends of an user from the Joined server. |
List<Message> |
getMessages(User user)
This method returns a list of all available message from the inbox of the logged in user. |
User |
login(String username,
String password)
This methods enables users to login at the Joined server. |
void |
logout(User user)
This methods enables users to logout at the Joined server. |
User |
register(String username,
String password)
This methods creates a new user at the Joined server. |
List<Friend> |
searchFriends(User user,
String nickname)
This method searches other users at the Joined server. |
void |
sendMessage(User user,
Friend friend,
String message)
This methods sends a text message to a friend. |
void |
updatePosition(User user,
double latitude,
double longitude)
This methods updates the position of the user at the Joined server. |
void |
updateStatus(User 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 JoinedClient createJoinedClient(String pJoinedServerUrl, String joinedSecretSalt)
pJoinedServerUrl
- The URL of the Joined server.joinedSecretSalt
- The secret salt for accessing the Joined server.
public User register(String username, String password) throws FriendFinderHTTPException, FriendFinderUnexpectedException, FriendFinderServerException, FriendFinderConflictException
AbstractJoinedClient
register
in class AbstractJoinedClient
username
- The name for the new user.password
- The password for the new user.
User
object that represents the logged in user.
FriendFinderHTTPException
FriendFinderUnexpectedException
FriendFinderServerException
FriendFinderConflictException
public void delete(User user) throws FriendFinderHTTPException, FriendFinderUnexpectedException, FriendFinderServerException, FriendFinderConflictException
AbstractJoinedClient
delete
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.
FriendFinderHTTPException
FriendFinderUnexpectedException
FriendFinderServerException
FriendFinderConflictException
public void logout(User user) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
logout
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public User login(String username, String password) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
login
in class AbstractJoinedClient
username
- The name of the user.password
- The password of the user.
User
object that represents the logged in user.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public void updatePosition(User user, double latitude, double longitude) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
updatePosition
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.latitude
- The position of the user (latitude coordinate).longitude
- The position of the user (longitude coordinate).
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public void updateStatus(User user, boolean active) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
updateStatus
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.active
- The status of the user (true
for active and visible, false
for inactive and invisible).
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public List<Friend> getFriends(User user) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
getFriends
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.
Friend
objects, each representing one friend of the user.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public List<Friend> searchFriends(User user, String nickname) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
searchFriends
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.nickname
- The nickname other users.
Friend
objects.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public void addFriend(User user, Friend friend) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException, FriendFinderSourceException
AbstractJoinedClient
addFriend
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.friend
- The Friend
object that represents the other user.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
FriendFinderSourceException
public void acceptFriend(User user, Friend friend) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
acceptFriend
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.friend
- The Friend
object that represents the other user.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public void deleteFriend(User user, Friend friend) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
deleteFriend
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.friend
- The User
object that represents the other user.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public void sendMessage(User user, Friend friend, String message) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
sendMessage
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.friend
- The Friend
object that represents the friend.message
- The text message.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public List<Message> getMessages(User user) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
getMessages
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.
Message
objects, each representing a message from the inbox of the logged in user.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
public void deleteMessages(User user) throws FriendFinderHTTPException, FriendFinderServerException, FriendFinderUnexpectedException, FriendFinderLoginException
AbstractJoinedClient
deleteMessages
in class AbstractJoinedClient
user
- The User
object that represents the logged in user.
FriendFinderHTTPException
FriendFinderServerException
FriendFinderUnexpectedException
FriendFinderLoginException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |