1 package com.zone.weixin4j.message;
2
3 import com.zone.weixin4j.request.WeixinMessage;
4 import com.zone.weixin4j.type.MessageType;
5
6 import javax.xml.bind.annotation.XmlElement;
7
8
9
10
11
12
13
14
15
16
17
18
19
20 public class VideoMessage extends WeixinMessage {
21
22 private static final long serialVersionUID = -1013075358679078381L;
23
24 public VideoMessage() {
25 super(MessageType.video.name());
26 }
27
28
29
30
31 @XmlElement(name = "MediaId")
32 private String mediaId;
33
34
35
36 @XmlElement(name = "ThumbMediaId")
37 private String thumbMediaId;
38
39 public String getMediaId() {
40 return mediaId;
41 }
42
43 public String getThumbMediaId() {
44 return thumbMediaId;
45 }
46
47 @Override
48 public String toString() {
49 return "VideoMessage [mediaId=" + mediaId + ", thumbMediaId="
50 + thumbMediaId + ", " + super.toString() + "]";
51 }
52 }