dev --- 3.8.0.A版本, openProject引用 ;
formao-live --- 3.7.0.B 版本, formallProject引用
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- package chanjarster.weixin.bean.custom;
-
- import chanjarster.weixin.api.WxConsts;
- import chanjarster.weixin.bean.WxCustomMessage;
-
- /**
- * 视频消息builder
- * <pre>
- * 用法: WxCustomMessage m = WxCustomMessage.VOICE()
- * .media_id(...)
- * .title(...)
- * .thumb_media_id(..)
- * .description(..)
- * .touser(...)
- * .build();
- * </pre>
- * @author chanjarster
- *
- */
- public final class VideoBuilder extends BaseBuilder<VideoBuilder> {
- private String media_id;
- private String title;
- private String description;
- private String thumb_media_id;
-
- public VideoBuilder() {
- this.msgtype = WxConsts.CUSTOM_MSG_VIDEO;
- }
-
- public VideoBuilder media_id(String media_id) {
- this.media_id = media_id;
- return this;
- }
-
- public VideoBuilder title(String title) {
- this.title = title;
- return this;
- }
-
- public VideoBuilder description(String description) {
- this.description = description;
- return this;
- }
-
- public VideoBuilder thumb_media_id(String thumb_media_id) {
- this.thumb_media_id = thumb_media_id;
- return this;
- }
-
- public WxCustomMessage build() {
- WxCustomMessage m = super.build();
- m.setMedia_id(this.media_id);
- m.setTitle(title);
- m.setDescription(description);
- m.setThumb_media_id(thumb_media_id);
- return m;
- }
- }
|