public class WxCpMessage
extends java.lang.Object
implements java.io.Serializable
构造器和说明 |
---|
WxCpMessage() |
限定符和类型 | 方法和说明 |
---|---|
static FileBuilder |
FILE()
获得文件消息builder.
|
static ImageBuilder |
IMAGE()
获得图片消息builder.
|
static MarkdownMsgBuilder |
MARKDOWN()
获得markdown消息builder.
|
static MpnewsBuilder |
MPNEWS()
获得mpnews图文消息builder.
|
static MiniProgramNoticeMsgBuilder |
newMiniProgramNoticeBuilder()
获得小程序通知消息builder.
|
static NewsBuilder |
NEWS()
获得图文消息builder.
|
void |
setMsgType(java.lang.String msgType)
请使用.
|
static TaskCardBuilder |
TASKCARD()
获得任务卡片消息builder.
|
static TemplateCardBuilder |
TEMPLATECARD()
获得任务卡片消息builder.
|
static TextBuilder |
TEXT()
获得文本消息builder.
|
static TextCardBuilder |
TEXTCARD()
获得文本卡片消息builder.
|
java.lang.String |
toJson() |
static VideoBuilder |
VIDEO()
获得视频消息builder.
|
static VoiceBuilder |
VOICE()
获得语音消息builder.
|
public static TextBuilder TEXT()
public static TextCardBuilder TEXTCARD()
public static ImageBuilder IMAGE()
public static VoiceBuilder VOICE()
public static VideoBuilder VIDEO()
public static NewsBuilder NEWS()
public static MpnewsBuilder MPNEWS()
public static MarkdownMsgBuilder MARKDOWN()
public static FileBuilder FILE()
public static TaskCardBuilder TASKCARD()
public static TemplateCardBuilder TEMPLATECARD()
public static MiniProgramNoticeMsgBuilder newMiniProgramNoticeBuilder()
public void setMsgType(java.lang.String msgType)
请使用.WxConsts.KefuMsgType.TEXT
WxConsts.KefuMsgType.IMAGE
WxConsts.KefuMsgType.VOICE
WxConsts.KefuMsgType.MUSIC
WxConsts.KefuMsgType.VIDEO
WxConsts.KefuMsgType.NEWS
WxConsts.KefuMsgType.MPNEWS
WxConsts.KefuMsgType.MARKDOWN
WxConsts.KefuMsgType.TASKCARD
WxConsts.KefuMsgType.MINIPROGRAM_NOTICE
WxConsts.KefuMsgType.TEMPLATE_CARD
msgType
- 消息类型public java.lang.String toJson()