Package com.foxinmy.weixin4j.mp.model
Class AuthorizerOption
- java.lang.Object
-
- com.foxinmy.weixin4j.mp.model.AuthorizerOption
-
- All Implemented Interfaces:
Serializable
public final class AuthorizerOption extends Object implements Serializable
授权方的选项信息- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthorizerOption.AuthorizerOptionName
选项名称
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizerOption
createCustomerServiceOption(int value)
多客服开关选项static AuthorizerOption
createLocationReportOption(int value)
地理位置上报选项static AuthorizerOption
createVoiceRecognizeOption(int value)
语音识别开关选项AuthorizerOption.AuthorizerOptionName
getName()
List<Integer>
getOptions()
int
getValue()
static AuthorizerOption
parse(AuthorizerOption.AuthorizerOptionName optionName, int optionValue)
返回选项对象String
toString()
-
-
-
Method Detail
-
createLocationReportOption
public static AuthorizerOption createLocationReportOption(int value)
地理位置上报选项- Parameters:
value
- 选项值- Returns:
- 选项对象
-
createVoiceRecognizeOption
public static AuthorizerOption createVoiceRecognizeOption(int value)
语音识别开关选项- Parameters:
value
- 选项值- Returns:
- 选项对象
-
createCustomerServiceOption
public static AuthorizerOption createCustomerServiceOption(int value)
多客服开关选项- Parameters:
value
- 选项值- Returns:
- 选项对象
-
parse
public static AuthorizerOption parse(AuthorizerOption.AuthorizerOptionName optionName, int optionValue)
返回选项对象- Parameters:
optionName
- 选项名optionValue
- 选项值- Returns:
- 选项对象
-
getName
public AuthorizerOption.AuthorizerOptionName getName()
-
getValue
public int getValue()
-
-