facebook4j.api
Interface MessageMethods

All Known Subinterfaces:
Facebook

public interface MessageMethods


Method Summary
 InboxResponseList<Message> getInbox()
          Returns the messages in the current user's inbox.
 InboxResponseList<Message> getInbox(Reading reading)
          Returns the messages in the current user's inbox.
 InboxResponseList<Message> getInbox(String userId)
          Returns the messages in a user's inbox.
 InboxResponseList<Message> getInbox(String userId, Reading reading)
          Returns the messages in a user's inbox.
 Message getMessage(String messageId)
          Returns a single message.
 Message getMessage(String messageId, Reading reading)
          Returns a single message.
 ResponseList<Message> getOutbox()
          Returns the messages in the current user's outbox.
 ResponseList<Message> getOutbox(Reading reading)
          Returns the messages in the current user's outbox.
 ResponseList<Message> getOutbox(String userId)
          Returns the messages in a user's outbox.
 ResponseList<Message> getOutbox(String userId, Reading reading)
          Returns the messages in a user's outbox.
 ResponseList<Message> getUpdates()
          Returns the updates in the current user's inbox.
 ResponseList<Message> getUpdates(Reading reading)
          Returns the updates in the current user's inbox.
 ResponseList<Message> getUpdates(String userId)
          Returns the updates in a user's inbox.
 ResponseList<Message> getUpdates(String userId, Reading reading)
          Returns the updates in a user's inbox.
 

Method Detail

getInbox

InboxResponseList<Message> getInbox()
                                    throws FacebookException
Returns the messages in the current user's inbox.

Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - inbox

getInbox

InboxResponseList<Message> getInbox(Reading reading)
                                    throws FacebookException
Returns the messages in the current user's inbox.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - inbox

getInbox

InboxResponseList<Message> getInbox(String userId)
                                    throws FacebookException
Returns the messages in a user's inbox.

Parameters:
userId - the ID of a user
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - inbox

getInbox

InboxResponseList<Message> getInbox(String userId,
                                    Reading reading)
                                    throws FacebookException
Returns the messages in a user's inbox.

Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - inbox

getOutbox

ResponseList<Message> getOutbox()
                                throws FacebookException
Returns the messages in the current user's outbox.

Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - outbox

getOutbox

ResponseList<Message> getOutbox(Reading reading)
                                throws FacebookException
Returns the messages in the current user's outbox.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - outbox

getOutbox

ResponseList<Message> getOutbox(String userId)
                                throws FacebookException
Returns the messages in a user's outbox.

Parameters:
userId - the ID of a user
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - outbox

getOutbox

ResponseList<Message> getOutbox(String userId,
                                Reading reading)
                                throws FacebookException
Returns the messages in a user's outbox.

Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - outbox

getUpdates

ResponseList<Message> getUpdates()
                                 throws FacebookException
Returns the updates in the current user's inbox.

Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - updates

getUpdates

ResponseList<Message> getUpdates(Reading reading)
                                 throws FacebookException
Returns the updates in the current user's inbox.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - updates

getUpdates

ResponseList<Message> getUpdates(String userId)
                                 throws FacebookException
Returns the updates in a user's inbox.

Parameters:
userId - the ID of a user
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - updates

getUpdates

ResponseList<Message> getUpdates(String userId,
                                 Reading reading)
                                 throws FacebookException
Returns the updates in a user's inbox.

Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - updates

getMessage

Message getMessage(String messageId)
                   throws FacebookException
Returns a single message.

Parameters:
messageId - the ID of the message
Returns:
message
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Message - Facebook Developers

getMessage

Message getMessage(String messageId,
                   Reading reading)
                   throws FacebookException
Returns a single message.

Parameters:
messageId - the ID of the message
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
message
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Message - Facebook Developers


Copyright © 2019. All rights reserved.