public class MenuMatchRule extends Object implements Serializable
Description:
| 构造器和说明 |
|---|
MenuMatchRule() |
| 限定符和类型 | 方法和说明 |
|---|---|
MenuMatchRule |
city(String city)
城市信息,是用户在微信中设置的地区
country、province、city组成地区信息,将按照country、province、city的顺序进行验证,要符合地区信息表的内容。
|
MenuMatchRule |
country(String country)
国家信息,是用户在微信中设置的地区
country、province、city组成地区信息,将按照country、province、city的顺序进行验证
,要符合地区信息表的内容。
|
MenuMatchRule |
gender(Gender gender) |
void |
gender0(int sex) |
String |
getCity() |
String |
getCountry() |
Gender |
getGender() |
Lang |
getLanguage() |
ClientPlatformType |
getPlatformType() |
String |
getProvince() |
com.alibaba.fastjson.JSONObject |
getRule() |
Integer |
getTagId() |
MenuMatchRule |
group(int tagId) |
boolean |
hasRule() |
MenuMatchRule |
language(Lang language) |
void |
language0(int language)
|
MenuMatchRule |
platform(ClientPlatformType platformType) |
void |
platform0(int platform)
|
MenuMatchRule |
province(String province)
省份信息,是用户在微信中设置的地区
country、province、city组成地区信息,将按照country、province、city的顺序进行验证,要符合地区信息表的内容。
|
String |
toString() |
public MenuMatchRule group(int tagId)
public void gender0(int sex)
public MenuMatchRule gender(Gender gender)
public void platform0(int platform)
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的顺序进行验证,要符合地区信息表的内容。 地区信息从大到小验证,小的可以不填,即若填写了省份信息,则国家信息也必填并且匹配,城市信息可以不填。 例如 “中国 广东省 广州市”、“中国 广东省”都是合法的地域信息,而“中国 广州市”则不合法,因为填写了城市信息但没有填写省份信息
province - public MenuMatchRule city(String city)
country、province、city组成地区信息,将按照country、province、city的顺序进行验证,要符合地区信息表的内容。 地区信息从大到小验证,小的可以不填,即若填写了省份信息,则国家信息也必填并且匹配,城市信息可以不填。 例如 “中国 广东省 广州市”、“中国 广东省”都是合法的地域信息,而“中国 广州市”则不合法,因为填写了城市信息但没有填写省份信息
city - public void language0(int language)
language - public MenuMatchRule language(Lang language)
public ClientPlatformType getPlatformType()
public Integer getTagId()
public Gender getGender()
public String getCountry()
public String getProvince()
public String getCity()
public Lang getLanguage()
public boolean hasRule()
public com.alibaba.fastjson.JSONObject getRule()
Copyright © 2020. All rights reserved.