com.egzosn.pay.common.bean.outbuilder.XmlBuilder Maven / Gradle / Ivy
package com.egzosn.pay.common.bean.outbuilder;
import com.egzosn.pay.common.bean.PayOutMessage;
/**
* source chanjarster/weixin-java-tools
* @author egan
*
* email [email protected]
* date 2016-6-1 11:40:30
*
*/
public class XmlBuilder extends BaseBuilder {
private String content;
private String code;
public XmlBuilder content(String content) {
this.content = content;
return this;
}
public XmlBuilder code(String code) {
this.code = code;
return this;
}
@Override
public PayOutMessage build() {
PayXmlOutMessage message = new PayXmlOutMessage();
setCommon(message);
message.setContent(content);
message.setCode(code);
return message;
}
}