com.seejoke.wechat.entity.outbuilder.MusicBuilder Maven / Gradle / Ivy
package com.seejoke.wechat.entity.outbuilder;
import com.seejoke.wechat.entity.WxXmlOutMusicMessage;
/**
* 音乐消息builder
*
* @author diaodiaofly
*
*/
public final class MusicBuilder extends BaseBuilder {
private String title;
private String description;
private String musicUrl;
private String hQMusicUrl;
private String thumbMediaId;
public MusicBuilder title(String title) {
this.title = title;
return this;
}
public MusicBuilder description(String description) {
this.description = description;
return this;
}
public MusicBuilder musicUri(String musicUrl){
this.musicUrl = musicUrl;
return this;
}
public MusicBuilder hQMusicUrl(String hQMusicUrl){
this.hQMusicUrl = hQMusicUrl;
return this;
}
public MusicBuilder thumbMediaId(String thumbMediaId){
this.thumbMediaId = thumbMediaId;
return this;
}
@Override
public WxXmlOutMusicMessage build() {
WxXmlOutMusicMessage m = new WxXmlOutMusicMessage();
setCommon(m);
m.setTitle(title);
m.setDescription(description);
m.setMusicUrl(musicUrl);
m.sethQMusicUrl(hQMusicUrl);
m.setThumbMediaId(thumbMediaId);
return m;
}
}