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

me.chanjar.weixin.cp.bean.messagebuilder.MiniProgramNoticeMsgBuilder Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.cp.bean.messagebuilder;

import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.cp.bean.message.WxCpMessage;

import java.util.Map;

/**
 * 
 * miniprogram_notice 类型的消息 builder
 * Created by Binary Wang on 2019/6/16.
 * 
* * @author Binary Wang */ public class MiniProgramNoticeMsgBuilder extends BaseBuilder { private String title; private String description; private String appId; private String page; private Boolean emphasisFirstItem; private Map contentItems; public MiniProgramNoticeMsgBuilder() { this.msgType = WxConsts.KefuMsgType.MINIPROGRAM_NOTICE; } public MiniProgramNoticeMsgBuilder appId(String appId) { this.appId = appId; return this; } public MiniProgramNoticeMsgBuilder page(String page) { this.page = page; return this; } public MiniProgramNoticeMsgBuilder title(String title) { this.title = title; return this; } public MiniProgramNoticeMsgBuilder description(String description) { this.description = description; return this; } public MiniProgramNoticeMsgBuilder contentItems(Map contentItems) { this.contentItems = contentItems; return this; } public MiniProgramNoticeMsgBuilder emphasisFirstItem(Boolean emphasisFirstItem) { this.emphasisFirstItem = emphasisFirstItem; return this; } @Override public WxCpMessage build() { WxCpMessage m = super.build(); m.setContentItems(this.contentItems); m.setAppId(this.appId); m.setDescription(this.description); m.setTitle(this.title); m.setEmphasisFirstItem(this.emphasisFirstItem); m.setPage(this.page); return m; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy