|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.mp.model.MenuMatchRule
public class MenuMatchRule
个性化菜单匹配规则
,
Serialized Form| Constructor Summary | |
|---|---|
MenuMatchRule()
|
|
| Method Summary | |
|---|---|
MenuMatchRule |
city(String city)
城市信息,是用户在微信中设置的地区 |
MenuMatchRule |
country(String country)
国家信息,是用户在微信中设置的地区 |
MenuMatchRule |
gender(Gender gender)
|
void |
gender0(int sex)
|
String |
getCity()
|
String |
getCountry()
|
Gender |
getGender()
|
Integer |
getGroupId()
|
Lang |
getLanguage()
|
ClientPlatformType |
getPlatformType()
|
String |
getProvince()
|
com.alibaba.fastjson.JSONObject |
getRule()
|
MenuMatchRule |
group(int groupId)
|
boolean |
hasRule()
|
MenuMatchRule |
language(Lang language)
|
void |
language0(int language)
请使用 language(Lang language) |
MenuMatchRule |
platform(ClientPlatformType platformType)
|
void |
platform0(int platform)
请使用 platform(ClientPlatformType platformType)} |
MenuMatchRule |
province(String province)
省份信息,是用户在微信中设置的地区 |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MenuMatchRule()
| Method Detail |
|---|
public MenuMatchRule group(int groupId)
public void gender0(int sex)
public MenuMatchRule gender(Gender gender)
public void platform0(int platform)
platform(ClientPlatformType platformType)}
platform - public MenuMatchRule platform(ClientPlatformType platformType)
public MenuMatchRule country(String country)
country、province、city组成地区信息,将按照country、province、city的顺序进行验证 ,要符合地区信息表的内容。地区信息从大到小验证,小的可以不填,即若填写了省份信息,则国家信息也必填并且匹配,城市信息可以不填。 例如 “中国 广东省 广州市”、“中国 广东省”都是合法的地域信息,而“中国 广州市”则不合法,因为填写了城市信息但没有填写省份信息
country -
public MenuMatchRule province(String province)
country、province、city组成地区信息,将按照country、province、city的顺序进行验证,要符合地区信息表的内容。 地区信息从大到小验证,小的可以不填,即若填写了省份信息,则国家信息也必填并且匹配,城市信息可以不填。 例如 “中国 广东省 广州市”、“中国 广东省”都是合法的地域信息,而“中国 广州市”则不合法,因为填写了城市信息但没有填写省份信息
country -
public MenuMatchRule city(String city)
country、province、city组成地区信息,将按照country、province、city的顺序进行验证,要符合地区信息表的内容。 地区信息从大到小验证,小的可以不填,即若填写了省份信息,则国家信息也必填并且匹配,城市信息可以不填。 例如 “中国 广东省 广州市”、“中国 广东省”都是合法的地域信息,而“中国 广州市”则不合法,因为填写了城市信息但没有填写省份信息
city -
public void language0(int language)
language(Lang language)
language - public MenuMatchRule language(Lang language)
public ClientPlatformType getPlatformType()
public Integer getGroupId()
public Gender getGender()
public String getCountry()
public String getProvince()
public String getCity()
public Lang getLanguage()
public boolean hasRule()
public com.alibaba.fastjson.JSONObject getRule()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||