| Modifier and Type | Class and Description |
|---|---|
static class |
Scope.ScopeType
Category of
Scope that describes its level of access. |
| Enum Constant and Description |
|---|
ALL_TRIPS
Request list of all trips belong to a user.
|
HISTORY
Pull trip data of a user's historical pickups and drop-offs.
|
HISTORY_LITE
Same as History without city information.
|
PAYMENT_METHODS
Retrieve user's available registered payment methods.
|
PLACES
Save and retrieve user's favorite places.
|
PROFILE
Access basic profile information on a user's Uber account.
|
REQUEST
Request ride on the behalf of an Uber account.
|
REQUEST_RECEIPT
Request ride for a ride on the behalf of an Uber account.
|
RIDE_WIDGETS
Access the Ride Request Widget.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitValue()
Gets the bit value that represents this.
|
Scope.ScopeType |
getScopeType()
Gets the
Scope.ScopeType associated with this Scope. |
static java.util.Set<Scope> |
parseScopes(int bitValues) |
static java.util.Set<Scope> |
parseScopes(java.lang.String concatenatedScopes) |
static java.lang.String |
toStandardString(java.util.Collection<Scope> scopes) |
static Scope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scope HISTORY
public static final Scope HISTORY_LITE
public static final Scope PAYMENT_METHODS
public static final Scope PLACES
public static final Scope PROFILE
public static final Scope RIDE_WIDGETS
public static final Scope REQUEST
public static final Scope REQUEST_RECEIPT
public static final Scope ALL_TRIPS
public static Scope[] values()
for (Scope c : Scope.values()) System.out.println(c);
public static Scope valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Scope.ScopeType getScopeType()
Scope.ScopeType associated with this Scope.public int getBitValue()
public static java.util.Set<Scope> parseScopes(java.lang.String concatenatedScopes)
public static java.util.Set<Scope> parseScopes(int bitValues)
public static java.lang.String toStandardString(@Nonnull
java.util.Collection<Scope> scopes)