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