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 ClassesNested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata -
Constructor Summary
Constructors -
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.voidsetActionType(String actionType) Request action type for structured requestvoidsetApplication(AppRequest.Application application) App associated with the request.voidsetCreatedTime(Date createdTime) Timestamp when the request was created.voidOptional data passed with the request for tracking purposesvoidsetFrom(NamedFacebookType from) The sender user associated with the request.voidsetMessage(String message) A string describing the request.voidThe recipient user associated with the request.Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods 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:
getMessagein interfaceHasMessage- Returns:
- A string describing the request.
-
setMessage
A string describing the request. -
getCreatedTime
Timestamp when the request was created.- Specified by:
getCreatedTimein interfaceHasCreatedTime- Returns:
- Timestamp when the request was created.
-
setCreatedTime
Timestamp when the request was created.
-