@Immutable @LevelUpApi(contract=ENTERPRISE) public final class PermissionsRequest extends Object implements Parcelable
App on behalf of the user. Typically,
this is used to construct an interface which presents the set of permissions to the user
alongside the App details, prompting them to accept or reject the App's request
for the permissions. If accepted, the app is then granted an AccessToken which lets it wield these permissions.| Modifier and Type | Class and Description |
|---|---|
static class |
PermissionsRequest.State
The state of the permissions request, according to the web service.
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<PermissionsRequest> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
PermissionsRequest(String acceptText,
long appId,
String createdAt,
String description,
long id,
Set<Permission> permissions,
String rejectText,
PermissionsRequest.State state)
|
PermissionsRequest(String acceptText,
long appId,
String createdAt,
String description,
long id,
Set<Permission> permissions,
String rejectText,
PermissionsRequest.State state,
String token) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getAcceptText()
The text to display to the user on the "Accept" affordance.
|
long |
getAppId()
The ID of the app this request is for.
|
String |
getCreatedAt()
The date this request was created.
|
String |
getDescription()
A short, human-readable description of this permissions request.
|
long |
getId()
The web service ID of this request.
|
Set<Permission> |
getPermissions()
The set of permissions being requested.
|
String |
getRejectText()
The text to display to the user on the "Reject" affordance.
|
PermissionsRequest.State |
getState()
The state of the request.
|
String |
getToken()
The access token, if one was provided by the web service.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<PermissionsRequest> CREATOR
Parcelable interface.@Deprecated public PermissionsRequest(String acceptText, long appId, String createdAt, String description, long id, Set<Permission> permissions, String rejectText, PermissionsRequest.State state)
public PermissionsRequest(String acceptText, long appId, String createdAt, String description, long id, Set<Permission> permissions, String rejectText, PermissionsRequest.State state, String token)
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelablepublic String getAcceptText()
public long getAppId()
public String getCreatedAt()
public String getDescription()
public long getId()
public Set<Permission> getPermissions()
public String getRejectText()
public PermissionsRequest.State getState()
public String getToken()