Package com.restfb.types
Class DeviceCode
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.DeviceCode
-
- All Implemented Interfaces:
Serializable
public class DeviceCode extends AbstractFacebookType
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeviceCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
Code used in the authorization pollInteger
getExpiresIn()
The code expires in these seconds.Integer
getInterval()
Your device should poll the Device Login API everyinterval
seconds to see if the authorization has been successfulString
getUserCode()
String to be shown to the userString
getVerificationUri()
Url the user should call.void
setCode(String code)
Code used in the authorization pollvoid
setExpiresIn(Integer expiresIn)
The code expires in these seconds.void
setInterval(Integer interval)
Your device should poll the Device Login API everyinterval
seconds to see if the authorization has been successfulvoid
setUserCode(String userCode)
String to be shown to the uservoid
setVerificationUri(String verificationUri)
Url the user should call.-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
DeviceCode
public DeviceCode()
-
-
Method Detail
-
getUserCode
public String getUserCode()
String to be shown to the user
-
setUserCode
public void setUserCode(String userCode)
String to be shown to the user
-
getVerificationUri
public String getVerificationUri()
Url the user should call.Here he should add the user code
-
setVerificationUri
public void setVerificationUri(String verificationUri)
Url the user should call.Here he should add the user code
-
getExpiresIn
public Integer getExpiresIn()
The code expires in these seconds.You should cancel the login flow after that time if you do not receive an access token
-
setExpiresIn
public void setExpiresIn(Integer expiresIn)
The code expires in these seconds.You should cancel the login flow after that time if you do not receive an access token
-
getInterval
public Integer getInterval()
Your device should poll the Device Login API everyinterval
seconds to see if the authorization has been successful
-
setInterval
public void setInterval(Integer interval)
Your device should poll the Device Login API everyinterval
seconds to see if the authorization has been successful
-
-