public class WechatOutVoiceMessage extends WechatOutMessage
构造器和说明 |
---|
WechatOutVoiceMessage() |
WechatOutVoiceMessage(WechatInMessage msg)
从事件上下文中构造返回消息对象
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getMediaId()
对应企业号的媒体库素材Id
|
WechatOutVoiceMessage |
setMediaId(java.lang.String mediaId)
设置对应企业号媒体库的素材Id
|
getCreateTime, getFromUserName, getMsgType, getToUserName, IMAGE, NEWS, setCreateTime, setFromUserName, setToUserName, TEXT, toString, toXml, VIDEO, VOICE
public WechatOutVoiceMessage()
public WechatOutVoiceMessage(WechatInMessage msg)
msg
- 微信消息事件处理器接收到的企业微信消息对象public java.lang.String getMediaId()
public WechatOutVoiceMessage setMediaId(java.lang.String mediaId)
mediaId
- 可以使用AWS PaaS“微信企业号管理平台”提供的ASLP完成素材的上传并获得素材IdCopyright © Actionsoft Co., Ltd. All Rights Reserved.