新增chatExtensionUrl字段

This commit is contained in:
jinyu 2016-07-08 10:29:27 +08:00
parent 17344ec20a
commit f62985f69d
2 changed files with 34 additions and 12 deletions

View File

@ -46,6 +46,10 @@ public class AgentInfo extends AgentSetter {
* 企业应用是否被禁用
*/
private boolean close;
/**
* 应用类型1消息型2主页型
*/
private int type;
public AgentInfo() {
super(0);
@ -101,11 +105,18 @@ public class AgentInfo extends AgentSetter {
this.close = close;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
@Override
public String toString() {
return "AgentInfo [squareLogoUrl=" + squareLogoUrl + ", roundLogoUrl="
+ roundLogoUrl + ", allowUsers=" + allowUsers
+ ", allowPartys=" + allowPartys + ", allowTags=" + allowTags
return "AgentInfo [type=" + type + ", squareLogoUrl=" + squareLogoUrl + ", roundLogoUrl=" + roundLogoUrl
+ ", allowUsers=" + allowUsers + ", allowPartys=" + allowPartys + ", allowTags=" + allowTags
+ ", close=" + close + ", " + super.toString() + "]";
}
}

View File

@ -12,8 +12,8 @@ import com.foxinmy.weixin4j.qy.type.ReportLocationType;
* @author jinyu(foxinmy@gmail.com)
* @date 2015年3月16日
* @since JDK 1.6
* @see <a
* href="http://qydev.weixin.qq.com/wiki/index.php?title=%E8%AE%BE%E7%BD%AE%E4%BC%81%E4%B8%9A%E5%8F%B7%E5%BA%94%E7%94%A8">设置企业号应用</a>
* @see <a href=
* "http://qydev.weixin.qq.com/wiki/index.php?title=%E8%AE%BE%E7%BD%AE%E4%BC%81%E4%B8%9A%E5%8F%B7%E5%BA%94%E7%94%A8">设置企业号应用</a>
*/
public class AgentSetter implements Serializable {
private static final long serialVersionUID = 5420335232308079801L;
@ -41,7 +41,7 @@ public class AgentSetter implements Serializable {
* 企业应用详情
*/
private String description;
/**
/**chatExtensionUrl
* 企业应用可信域名
*/
@JSONField(name = "redirect_domain")
@ -61,6 +61,11 @@ public class AgentSetter implements Serializable {
*/
@JSONField(name = "home_url")
private String homeUrl;
/**
* 关联会话url
*/
@JSONField(name = "chat_extension_url")
private String chatExtensionUrl;
public AgentSetter(int agentId) {
this.agentId = agentId;
@ -136,13 +141,19 @@ public class AgentSetter implements Serializable {
this.homeUrl = homeUrl;
}
public String getChatExtensionUrl() {
return chatExtensionUrl;
}
public void setChatExtensionUrl(String chatExtensionUrl) {
this.chatExtensionUrl = chatExtensionUrl;
}
@Override
public String toString() {
return "agentId=" + agentId + ", reportLocationType="
+ reportLocationType + ", logoMediaId=" + logoMediaId
+ ", name=" + name + ", description=" + description
+ ", redirectDomain=" + redirectDomain + ", isReportUser="
+ isReportUser + ", isReportEnter=" + isReportEnter
+ ", homeUrl=" + homeUrl;
return "agentId=" + agentId + ", reportLocationType=" + reportLocationType + ", logoMediaId=" + logoMediaId
+ ", name=" + name + ", description=" + description + ", redirectDomain=" + redirectDomain
+ ", isReportUser=" + isReportUser + ", isReportEnter=" + isReportEnter + ", homeUrl=" + homeUrl
+ ", chatExtensionUrl=" + chatExtensionUrl;
}
}