View Javadoc
1   package com.foxinmy.weixin4j.qy.model;
2   
3   import java.util.List;
4   
5   import com.alibaba.fastjson.annotation.JSONField;
6   
7   /**
8    * 企业号应用的设置信息
9    * 
10   * @className AgentInfo
11   * @author jinyu(foxinmy@gmail.com)
12   * @date 2015年3月17日
13   * @since JDK 1.6
14   * @see
15   */
16  public class AgentInfo extends AgentSetter {
17  
18  	private static final long serialVersionUID = -8975132919768696174L;
19  
20  	/**
21  	 * 企业应用方形头像
22  	 */
23  	@JSONField(name = "square_logo_url")
24  	private String squareLogoUrl;
25  	/**
26  	 * 企业应用可见范围(人员),其中包括userid和关注状态state
27  	 */
28  	@JSONField(deserialize = false)
29  	private List<User> allowUsers;
30  	/**
31  	 * 企业应用可见范围(部门)
32  	 */
33  	@JSONField(deserialize = false)
34  	private List<Integer> allowPartys;
35  	/**
36  	 * 企业应用可见范围(标签)
37  	 */
38  	@JSONField(deserialize = false)
39  	private List<Integer> allowTags;
40  	/**
41  	 * 企业应用是否被禁用
42  	 */
43  	private boolean close;
44  
45  	public AgentInfo() {
46  		super(0);
47  	}
48  
49  	public List<User> getAllowUsers() {
50  		return allowUsers;
51  	}
52  
53  	public void setAllowUsers(List<User> allowUsers) {
54  		this.allowUsers = allowUsers;
55  	}
56  
57  	public List<Integer> getAllowPartys() {
58  		return allowPartys;
59  	}
60  
61  	public void setAllowPartys(List<Integer> allowPartys) {
62  		this.allowPartys = allowPartys;
63  	}
64  
65  	public List<Integer> getAllowTags() {
66  		return allowTags;
67  	}
68  
69  	public void setAllowTags(List<Integer> allowTags) {
70  		this.allowTags = allowTags;
71  	}
72  
73  	public boolean isClose() {
74  		return close;
75  	}
76  
77  	// ---------- setter 应该全部去掉
78  
79  	public void setSquareLogoUrl(String squareLogoUrl) {
80  		this.squareLogoUrl = squareLogoUrl;
81  	}
82  
83  	public void setClose(boolean close) {
84  		this.close = close;
85  	}
86  
87  	@Override
88  	public String toString() {
89  		return "AgentInfo [squareLogoUrl=" + squareLogoUrl + ", allowUsers="
90  				+ allowUsers + ", allowPartys=" + allowPartys + ", allowTags="
91  				+ allowTags + ", close=" + close + ", " + super.toString()
92  				+ "]";
93  	}
94  }