All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jfinal.weixin.sdk.msg.out.OutImageMsg Maven / Gradle / Ivy

/**
 * Copyright (c) 2011-2014, James Zhan 詹波 ([email protected]).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */

package com.jfinal.weixin.sdk.msg.out;

import com.jfinal.weixin.sdk.msg.in.InMsg;

/**
 * 
    回复图片消息
 <xml>
 <ToUserName><![CDATA[toUser]]></ToUserName>
 <FromUserName><![CDATA[fromUser]]></FromUserName>
 <CreateTime>12345678</CreateTime>
 <MsgType><![CDATA[image]]></MsgType>
 <Image>
 <MediaId><![CDATA[media_id]]></MediaId>
 </Image>
 </xml>
 
*/ @SuppressWarnings("serial") public class OutImageMsg extends OutMsg { private String mediaId; public OutImageMsg() { this.msgType = "image"; } public OutImageMsg(InMsg inMsg) { super(inMsg); this.msgType = "image"; } @Override protected void subXml(StringBuilder sb) { if (null == mediaId) { throw new NullPointerException("mediaId is null"); } sb.append("\n"); sb.append("\n"); sb.append("\n"); } public String getMediaId() { return mediaId; } public void setMediaId(String mediaId) { this.mediaId = mediaId; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy