com.foxinmy.weixin4j.response.VoiceResponse Maven / Gradle / Ivy
package com.foxinmy.weixin4j.response;
/**
* 回复语音消息
*
* @className VoiceResponse
* @author jinyu([email protected])
* @date 2015年5月5日
* @since JDK 1.6
* @see
*/
public class VoiceResponse implements WeixinResponse {
/**
* 通过上传多媒体文件,得到的id
*/
private String mediaId;
public VoiceResponse(String mediaId) {
this.mediaId = mediaId;
}
@Override
public String toContent() {
return String.format(
" ", mediaId);
}
public String getMediaId() {
return mediaId;
}
@Override
public String getMsgType() {
return "voice";
}
}