Package org.pac4j.oauth.client
Enum WeiboClient.WeiboScope
- java.lang.Object
-
- java.lang.Enum<WeiboClient.WeiboScope>
-
- org.pac4j.oauth.client.WeiboClient.WeiboScope
-
- All Implemented Interfaces:
Serializable,Comparable<WeiboClient.WeiboScope>
- Enclosing class:
- WeiboClient
public static enum WeiboClient.WeiboScope extends Enum<WeiboClient.WeiboScope>
WeiboScope.More info at: Scope
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLDIRECT_MESSAGES_READDIRECT_MESSAGES_WRITEEMAILFOLLOW_APP_OFFICIAL_MICROBLOGFRIENDSHIPS_GROUPS_READFRIENDSHIPS_GROUPS_WRITEINVITATION_WRITESTATUSES_TO_ME_READ
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WeiboClient.WeiboScopevalueOf(String name)Returns the enum constant of this type with the specified name.static WeiboClient.WeiboScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final WeiboClient.WeiboScope ALL
-
EMAIL
public static final WeiboClient.WeiboScope EMAIL
-
DIRECT_MESSAGES_WRITE
public static final WeiboClient.WeiboScope DIRECT_MESSAGES_WRITE
-
DIRECT_MESSAGES_READ
public static final WeiboClient.WeiboScope DIRECT_MESSAGES_READ
-
INVITATION_WRITE
public static final WeiboClient.WeiboScope INVITATION_WRITE
-
FRIENDSHIPS_GROUPS_READ
public static final WeiboClient.WeiboScope FRIENDSHIPS_GROUPS_READ
-
FRIENDSHIPS_GROUPS_WRITE
public static final WeiboClient.WeiboScope FRIENDSHIPS_GROUPS_WRITE
-
STATUSES_TO_ME_READ
public static final WeiboClient.WeiboScope STATUSES_TO_ME_READ
-
FOLLOW_APP_OFFICIAL_MICROBLOG
public static final WeiboClient.WeiboScope FOLLOW_APP_OFFICIAL_MICROBLOG
-
-
Method Detail
-
values
public static WeiboClient.WeiboScope[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WeiboClient.WeiboScope c : WeiboClient.WeiboScope.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WeiboClient.WeiboScope valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-