Package com.restfb.types
Class AppRequest
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.AppRequest
- All Implemented Interfaces:
HasCreatedTime
,HasFrom
,HasMessage
,Serializable
Represents the App Request Graph API
type.
- Since:
- 1.6.10
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRequest action type for structured requestApp associated with the request.Timestamp when the request was created.getData()
Optional data passed with the request for tracking purposesgetFrom()
The sender user associated with the request.A string describing the request.getTo()
The recipient user associated with the request.void
setActionType
(String actionType) Request action type for structured requestvoid
setApplication
(AppRequest.Application application) App associated with the request.void
setCreatedTime
(Date createdTime) Timestamp when the request was created.void
Optional data passed with the request for tracking purposesvoid
setFrom
(NamedFacebookType from) The sender user associated with the request.void
setMessage
(String message) A string describing the request.void
The recipient user associated with the request.Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
AppRequest
public AppRequest()
-
-
Method Details
-
getActionType
Request action type for structured request- Returns:
- Request action type for structured request
-
setActionType
Request action type for structured request -
getApplication
App associated with the request.- Returns:
- App associated with the request.
-
setApplication
App associated with the request. -
getData
Optional data passed with the request for tracking purposes- Returns:
- Optional data passed with the request for tracking purposes
-
setData
Optional data passed with the request for tracking purposes -
getTo
The recipient user associated with the request.- Returns:
- The recipient user associated with the request.
-
setTo
The recipient user associated with the request. -
getFrom
The sender user associated with the request. -
setFrom
The sender user associated with the request. -
getMessage
A string describing the request.- Specified by:
getMessage
in interfaceHasMessage
- Returns:
- A string describing the request.
-
setMessage
A string describing the request. -
getCreatedTime
Timestamp when the request was created.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- Timestamp when the request was created.
-
setCreatedTime
Timestamp when the request was created.
-