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
public class AppRequest extends FacebookType implements HasCreatedTime, HasFrom, HasMessage
Represents the App Request Graph API type.- Since:
- 1.6.10
- Author:
- Mark Allen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppRequest.Application
Represents the Cover Graph API type.-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description AppRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getActionType()
Request action type for structured requestAppRequest.Application
getApplication()
App associated with the request.Date
getCreatedTime()
Timestamp when the request was created.String
getData()
Optional data passed with the request for tracking purposesNamedFacebookType
getFrom()
The sender user associated with the request.String
getMessage()
A string describing the request.NamedFacebookType
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
setData(String data)
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
setTo(NamedFacebookType to)
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 Detail
-
AppRequest
public AppRequest()
-
-
Method Detail
-
getActionType
public String getActionType()
Request action type for structured request- Returns:
- Request action type for structured request
-
setActionType
public void setActionType(String actionType)
Request action type for structured request
-
getApplication
public AppRequest.Application getApplication()
App associated with the request.- Returns:
- App associated with the request.
-
setApplication
public void setApplication(AppRequest.Application application)
App associated with the request.
-
getData
public String getData()
Optional data passed with the request for tracking purposes- Returns:
- Optional data passed with the request for tracking purposes
-
setData
public void setData(String data)
Optional data passed with the request for tracking purposes
-
getTo
public NamedFacebookType getTo()
The recipient user associated with the request.- Returns:
- The recipient user associated with the request.
-
setTo
public void setTo(NamedFacebookType to)
The recipient user associated with the request.
-
getFrom
public NamedFacebookType getFrom()
The sender user associated with the request.
-
setFrom
public void setFrom(NamedFacebookType from)
The sender user associated with the request.
-
getMessage
public String getMessage()
A string describing the request.- Specified by:
getMessage
in interfaceHasMessage
- Returns:
- A string describing the request.
-
setMessage
public void setMessage(String message)
A string describing the request.
-
getCreatedTime
public Date getCreatedTime()
Timestamp when the request was created.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- Timestamp when the request was created.
-
setCreatedTime
public void setCreatedTime(Date createdTime)
Timestamp when the request was created.
-
-