View Javadoc
1   package com.foxinmy.weixin4j.tuple;
2   
3   import com.alibaba.fastjson.annotation.JSONCreator;
4   import com.alibaba.fastjson.annotation.JSONField;
5   
6   /**
7    * 语音对象
8    * <p>
9    * <font color="red">可用于「客服消息」「群发消息」</font>
10   * </p>
11   * 
12   * @className Voice
13   * @author jinyu(foxinmy@gmail.com)
14   * @date 2014年9月29日
15   * @since JDK 1.6
16   * @see
17   */
18  public class Voice extends Image implements NotifyTuple {
19  
20  	private static final long serialVersionUID = 8853054484809101524L;
21  
22  	@Override
23  	public String getMessageType() {
24  		return "voice";
25  	}
26  
27  	@JSONCreator
28  	public Voice(@JSONField(name = "mediaId") String mediaId) {
29  		super(mediaId);
30  	}
31  }