File tree Expand file tree Collapse file tree 11 files changed +42
-37
lines changed
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean Expand file tree Collapse file tree 11 files changed +42
-37
lines changed Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .cp .bean ;
2
2
3
- import me .chanjar .weixin .cp .util .json .WxCpGsonBuilder ;
4
-
5
3
import java .io .Serializable ;
6
4
5
+ import me .chanjar .weixin .cp .util .json .WxCpGsonBuilder ;
6
+
7
7
/**
8
8
* 微信部门
9
9
*
10
10
* @author Daniel Qian
11
11
*/
12
12
public class WxCpDepart implements Serializable {
13
13
14
- /**
15
- *
16
- */
17
14
private static final long serialVersionUID = -5028321625140879571L ;
18
15
private Integer id ;
19
16
private String name ;
Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .cp .bean ;
2
2
3
- import me .chanjar .weixin .cp .bean .messagebuilder .*;
4
- import me .chanjar .weixin .cp .util .json .WxCpGsonBuilder ;
5
-
6
3
import java .io .Serializable ;
7
4
import java .util .ArrayList ;
8
5
import java .util .List ;
9
6
7
+ import me .chanjar .weixin .cp .bean .messagebuilder .FileBuilder ;
8
+ import me .chanjar .weixin .cp .bean .messagebuilder .ImageBuilder ;
9
+ import me .chanjar .weixin .cp .bean .messagebuilder .NewsBuilder ;
10
+ import me .chanjar .weixin .cp .bean .messagebuilder .TextBuilder ;
11
+ import me .chanjar .weixin .cp .bean .messagebuilder .VideoBuilder ;
12
+ import me .chanjar .weixin .cp .bean .messagebuilder .VoiceBuilder ;
13
+ import me .chanjar .weixin .cp .util .json .WxCpGsonBuilder ;
14
+
10
15
/**
11
16
* 消息
12
17
*
13
18
* @author Daniel Qian
14
19
*/
15
20
public class WxCpMessage implements Serializable {
16
21
17
- /**
18
- *
19
- */
20
22
private static final long serialVersionUID = -2082278303476631708L ;
21
23
private String toUser ;
22
24
private String toParty ;
Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .cp .bean ;
2
2
3
- import me .chanjar .weixin .cp .util .json .WxCpGsonBuilder ;
4
-
5
3
import java .io .Serializable ;
6
4
5
+ import me .chanjar .weixin .cp .util .json .WxCpGsonBuilder ;
6
+
7
7
/**
8
8
* Created by Daniel Qian
9
9
*/
10
10
public class WxCpTag implements Serializable {
11
11
12
- /**
13
- *
14
- */
15
12
private static final long serialVersionUID = -7243320279646928402L ;
16
13
17
14
private String id ;
Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .cp .bean ;
2
2
3
- import me .chanjar .weixin .cp .util .json .WxCpGsonBuilder ;
4
-
5
3
import java .io .Serializable ;
6
4
import java .util .ArrayList ;
7
5
import java .util .List ;
8
6
7
+ import me .chanjar .weixin .cp .util .json .WxCpGsonBuilder ;
8
+
9
9
/**
10
10
* 微信用户信息
11
11
*
12
12
* @author Daniel Qian
13
13
*/
14
14
public class WxCpUser implements Serializable {
15
15
16
- /**
17
- *
18
- */
19
16
private static final long serialVersionUID = -5696099236344075582L ;
20
17
private final List <Attr > extAttrs = new ArrayList <>();
21
18
private String userId ;
Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .cp .bean ;
2
2
3
+ import java .io .IOException ;
4
+ import java .io .InputStream ;
5
+ import java .io .Serializable ;
6
+ import java .util .ArrayList ;
7
+ import java .util .List ;
8
+
9
+ import org .apache .commons .io .IOUtils ;
10
+
3
11
import com .thoughtworks .xstream .annotations .XStreamAlias ;
4
12
import com .thoughtworks .xstream .annotations .XStreamConverter ;
13
+
5
14
import me .chanjar .weixin .common .util .xml .XStreamCDataConverter ;
6
15
import me .chanjar .weixin .cp .api .WxCpConfigStorage ;
7
16
import me .chanjar .weixin .cp .util .crypto .WxCpCryptUtil ;
8
17
import me .chanjar .weixin .cp .util .xml .XStreamTransformer ;
9
- import org .apache .commons .io .IOUtils ;
10
-
11
- import java .io .IOException ;
12
- import java .io .InputStream ;
13
- import java .io .Serializable ;
14
- import java .util .ArrayList ;
15
- import java .util .List ;
16
18
17
19
/**
18
20
* <pre>
27
29
*/
28
30
@ XStreamAlias ("xml" )
29
31
public class WxCpXmlMessage implements Serializable {
32
+ private static final long serialVersionUID = -1042994982179476410L ;
30
33
31
34
///////////////////////
32
35
// 以下都是微信推送过来的消息的xml的element所对应的属性
33
36
///////////////////////
34
37
35
- /**
36
- *
37
- */
38
- private static final long serialVersionUID = -1042994982179476410L ;
39
-
40
38
@ XStreamAlias ("AgentID" )
41
39
private Integer agentId ;
42
40
Original file line number Diff line number Diff line change 2
2
3
3
import com .thoughtworks .xstream .annotations .XStreamAlias ;
4
4
import com .thoughtworks .xstream .annotations .XStreamConverter ;
5
+
5
6
import me .chanjar .weixin .common .api .WxConsts ;
6
7
import me .chanjar .weixin .common .util .xml .XStreamMediaIdConverter ;
7
8
8
9
@ XStreamAlias ("xml" )
9
10
public class WxCpXmlOutImageMessage extends WxCpXmlOutMessage {
11
+ private static final long serialVersionUID = -1099446240667237313L ;
10
12
11
13
@ XStreamAlias ("Image" )
12
14
@ XStreamConverter (value = XStreamMediaIdConverter .class )
Original file line number Diff line number Diff line change 8
8
import me .chanjar .weixin .cp .util .crypto .WxCpCryptUtil ;
9
9
import me .chanjar .weixin .cp .util .xml .XStreamTransformer ;
10
10
11
+ import java .io .Serializable ;
12
+
11
13
@ XStreamAlias ("xml" )
12
- public abstract class WxCpXmlOutMessage {
14
+ public abstract class WxCpXmlOutMessage implements Serializable {
15
+
16
+ private static final long serialVersionUID = 1418629839964153110L ;
13
17
14
18
@ XStreamAlias ("ToUserName" )
15
19
@ XStreamConverter (value = XStreamCDataConverter .class )
Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .cp .bean ;
2
2
3
+ import java .util .ArrayList ;
4
+ import java .util .List ;
5
+
3
6
import com .thoughtworks .xstream .annotations .XStreamAlias ;
4
7
import com .thoughtworks .xstream .annotations .XStreamConverter ;
8
+
5
9
import me .chanjar .weixin .common .api .WxConsts ;
6
10
import me .chanjar .weixin .common .util .xml .XStreamCDataConverter ;
7
11
8
- import java .util .ArrayList ;
9
- import java .util .List ;
10
-
11
12
@ XStreamAlias ("xml" )
12
13
public class WxCpXmlOutNewsMessage extends WxCpXmlOutMessage {
14
+ private static final long serialVersionUID = -5796178637883178826L ;
13
15
14
16
@ XStreamAlias ("Articles" )
15
17
protected final List <Item > articles = new ArrayList <>();
Original file line number Diff line number Diff line change 2
2
3
3
import com .thoughtworks .xstream .annotations .XStreamAlias ;
4
4
import com .thoughtworks .xstream .annotations .XStreamConverter ;
5
+
5
6
import me .chanjar .weixin .common .api .WxConsts ;
6
7
import me .chanjar .weixin .common .util .xml .XStreamCDataConverter ;
7
8
8
9
@ XStreamAlias ("xml" )
9
10
public class WxCpXmlOutTextMessage extends WxCpXmlOutMessage {
11
+ private static final long serialVersionUID = 2569239617185930232L ;
10
12
11
13
@ XStreamAlias ("Content" )
12
14
@ XStreamConverter (value = XStreamCDataConverter .class )
Original file line number Diff line number Diff line change 2
2
3
3
import com .thoughtworks .xstream .annotations .XStreamAlias ;
4
4
import com .thoughtworks .xstream .annotations .XStreamConverter ;
5
+
5
6
import me .chanjar .weixin .common .api .WxConsts ;
6
7
import me .chanjar .weixin .common .util .xml .XStreamCDataConverter ;
7
8
8
9
@ XStreamAlias ("xml" )
9
10
public class WxCpXmlOutVideoMessage extends WxCpXmlOutMessage {
11
+ private static final long serialVersionUID = -8672761162722733622L ;
10
12
11
13
@ XStreamAlias ("Video" )
12
14
protected final Video video = new Video ();
You can’t perform that action at this time.
0 commit comments