public class WxMpKefuMessage extends Object implements Serializable
限定符和类型 | 类和说明 |
---|---|
static class |
WxMpKefuMessage.MsgMenu |
static class |
WxMpKefuMessage.WxArticle |
构造器和说明 |
---|
WxMpKefuMessage() |
限定符和类型 | 方法和说明 |
---|---|
static ImageBuilder |
IMAGE()
获得图片消息builder.
|
static MiniProgramPageBuilder |
MINIPROGRAMPAGE()
小程序卡片.
|
static MpNewsBuilder |
MPNEWS()
获得图文消息(点击跳转到图文消息页面)builder.
|
static WxMsgMenuBuilder |
MSGMENU()
获得菜单消息builder.
|
static MusicBuilder |
MUSIC()
获得音乐消息builder.
|
static NewsBuilder |
NEWS()
获得图文消息(点击跳转到外链)builder.
|
void |
setMsgType(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#WXCARD
WxConsts.KefuMsgType#MINIPROGRAMPAGE
WxConsts.KefuMsgType#TASKCARD
WxConsts.KefuMsgType#MSGMENU
|
static TextBuilder |
TEXT()
获得文本消息builder.
|
String |
toJson() |
static VideoBuilder |
VIDEO()
获得视频消息builder.
|
static VoiceBuilder |
VOICE()
获得语音消息builder.
|
static WxCardBuilder |
WXCARD()
获得卡券消息builder.
|
public static TextBuilder TEXT()
public static ImageBuilder IMAGE()
public static VoiceBuilder VOICE()
public static VideoBuilder VIDEO()
public static MusicBuilder MUSIC()
public static NewsBuilder NEWS()
public static MpNewsBuilder MPNEWS()
public static WxCardBuilder WXCARD()
public static WxMsgMenuBuilder MSGMENU()
public static MiniProgramPageBuilder MINIPROGRAMPAGE()
public void setMsgType(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#WXCARD
WxConsts.KefuMsgType#MINIPROGRAMPAGE
WxConsts.KefuMsgType#TASKCARD
WxConsts.KefuMsgType#MSGMENU
public String toJson()
Copyright © 2021. All rights reserved.