com.foxinmy.weixin4j.message
Class VoiceMessage

java.lang.Object
  extended by com.foxinmy.weixin4j.request.WeixinMessage
      extended by com.foxinmy.weixin4j.message.VoiceMessage
All Implemented Interfaces:
Serializable

public class VoiceMessage
extends WeixinMessage

语音消息

开通语音识别功能,用户每次发送语音给公众号时,微信会在推送的语音消息XML数据包中,赋值到Recongnition字段.

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:
订阅号、服务号的语音消息, 企业号的语音消息, Serialized Form

Constructor Summary
VoiceMessage()
           
 
Method Summary
 String getFormat()
           
 String getMediaId()
           
 String getRecognition()
           
 String toString()
           
 
Methods inherited from class com.foxinmy.weixin4j.request.WeixinMessage
equals, getAgentId, getCreateTime, getFormatCreateTime, getFormatMsgType, getFromUserName, getMsgId, getMsgType, getToUserName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VoiceMessage

public VoiceMessage()
Method Detail

getRecognition

public String getRecognition()

getMediaId

public String getMediaId()

getFormat

public String getFormat()

toString

public String toString()
Overrides:
toString in class WeixinMessage


Copyright © 2014–2017. All rights reserved.