
net.sf.weixinmp.outbound.passive.PassiveVideoMessage Maven / Gradle / Ivy
The newest version!
package net.sf.weixinmp.outbound.passive;
import java.text.MessageFormat;
/**
* 回复视频消息
12345678
参数 是否必须 说明
ToUserName 是 接收方帐号(收到的OpenID)
FromUserName 是 开发者微信号
CreateTime 是 消息创建时间 (整型)
MsgType 是 video
MediaId 是 通过上传多媒体文件,得到的id
Title 否 视频消息的标题
Description 否 视频消息的描述
* @author Alex
*
*/
public class PassiveVideoMessage extends PassiveStringMessage {
private final static String xmlTemplate = "{2} ";
public PassiveVideoMessage(String to, String from, String mediaId, String title, String desc) {
super("text/xml;charset=utf-8", MessageFormat.format(xmlTemplate, to, from, (System.currentTimeMillis()/1000)+"", mediaId, title, desc));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy