1 package com.foxinmy.weixin4j.qy.model;
2
3 import java.util.List;
4
5 import com.alibaba.fastjson.annotation.JSONCreator;
6 import com.alibaba.fastjson.annotation.JSONField;
7 import com.foxinmy.weixin4j.model.WeixinAccount;
8
9
10
11
12
13
14
15
16
17 public class WeixinQyAccount extends WeixinAccount {
18
19 private static final long serialVersionUID = 3689999353867189585L;
20
21
22
23 private List<WeixinAccount> suites;
24
25
26
27 private String providerSecret;
28
29
30
31 private String chatSecret;
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 @JSONCreator
47 public WeixinQyAccount(@JSONField(name = "id") String corpid,
48 @JSONField(name = "secret") String corpsecret,
49 @JSONField(name = "suites") List<WeixinAccount> suites,
50 @JSONField(name = "providerSecret") String providerSecret,
51 @JSONField(name = "chatSecret") String chatSecret) {
52 super(corpid, corpsecret);
53 this.suites = suites;
54 this.providerSecret = providerSecret;
55 this.chatSecret = chatSecret;
56 }
57
58 public List<WeixinAccount> getSuites() {
59 return suites;
60 }
61
62 public String getProviderSecret() {
63 return providerSecret;
64 }
65
66 public String getChatSecret() {
67 return chatSecret;
68 }
69
70 @Override
71 public String toString() {
72 return "WeixinQyAccount [" + super.toString() + ", suites=" + suites
73 + ", providerSecret=" + providerSecret + ", chatSecret="
74 + chatSecret + "]";
75 }
76 }