1 package com.foxinmy.weixin4j.qy.event;
2
3 import java.io.Serializable;
4
5 import javax.xml.bind.annotation.XmlElement;
6
7 import com.foxinmy.weixin4j.message.event.EventMessage;
8 import com.foxinmy.weixin4j.type.EventType;
9
10
11
12
13
14
15
16
17
18
19
20 public class BatchjobresultMessage extends EventMessage {
21
22 private static final long serialVersionUID = 8014540441322209657L;
23
24 public BatchjobresultMessage() {
25 super(EventType.batch_job_result.name());
26 }
27
28
29
30
31 @XmlElement(name = "BatchJob")
32 private BatchJob batchJob;
33
34 public BatchJob getBatchJob() {
35 return batchJob;
36 }
37
38
39
40
41
42
43
44
45
46
47 public static class BatchJob implements Serializable {
48 private static final long serialVersionUID = -7520032656787156391L;
49
50
51
52 @XmlElement(name = "JobId")
53 private String jobId;
54
55
56
57
58
59
60 @XmlElement(name = "JobType")
61 private String jobType;
62
63
64
65 @XmlElement(name = "ErrCode")
66 private String ErrCode;
67
68
69
70 @XmlElement(name = "ErrMsg")
71 private String errMsg;
72
73 public String getJobId() {
74 return jobId;
75 }
76
77 public String getJobType() {
78 return jobType;
79 }
80
81 public String getErrCode() {
82 return ErrCode;
83 }
84
85 public String getErrMsg() {
86 return errMsg;
87 }
88
89 @Override
90 public String toString() {
91 return "[jobId=" + jobId + ", jobType=" + jobType + ", ErrCode="
92 + ErrCode + ", errMsg=" + errMsg + "]";
93 }
94 }
95
96 @Override
97 public String toString() {
98 return "BatchjobresultMessage [batchJob=" + batchJob + ", "
99 + super.toString() + "]";
100 }
101 }