1 package com.foxinmy.weixin4j.mp.model;
2
3 import java.util.List;
4
5 import com.foxinmy.weixin4j.model.Token;
6
7
8
9
10
11
12
13
14
15
16 public class ComponentAuthorizerToken extends Token {
17
18 private static final long serialVersionUID = 1L;
19
20
21
22
23 private String appId;
24
25
26
27
28
29 private String refreshToken;
30
31
32
33
34 private List<Integer> privileges;
35
36 public ComponentAuthorizerToken(String accessToken, long expires) {
37 super(accessToken, expires);
38 }
39
40 public String getAppId() {
41 return appId;
42 }
43
44 public void setAppId(String appId) {
45 this.appId = appId;
46 }
47
48 public String getRefreshToken() {
49 return refreshToken;
50 }
51
52 public void setRefreshToken(String refreshToken) {
53 this.refreshToken = refreshToken;
54 }
55
56 public List<Integer> getPrivileges() {
57 return privileges;
58 }
59
60 public void setPrivileges(List<Integer> categoryIds) {
61 this.privileges = categoryIds;
62 }
63
64 @Override
65 public String toString() {
66 return "ComponentAuthorizerToken [appId=" + appId + ", refreshToken="
67 + refreshToken + ", privileges=" + privileges + ", "
68 + super.toString() + "]";
69 }
70 }