-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#193 添加客服消息类型 mpnews,miniprogrampage,msgmenu
添加客服输入状态接口 MessageAPI.messageCustomTyping
- Loading branch information
liyi
committed
Feb 22, 2019
1 parent
c654872
commit c642552
Showing
11 changed files
with
270 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
public interface Version { | ||
|
||
String VERSION = "2.8.26-SNAPSHOT"; | ||
String VERSION = "2.8.26"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
src/main/java/weixin/popular/bean/message/message/MiniprogrampageMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package weixin.popular.bean.message.message; | ||
|
||
/** | ||
* 小程序卡片 | ||
* | ||
* @serial 2.8.26 | ||
* @author LiYi | ||
* | ||
*/ | ||
public class MiniprogrampageMessage extends Message { | ||
|
||
public MiniprogrampageMessage() { | ||
} | ||
|
||
public MiniprogrampageMessage(String touser) { | ||
super(touser, "miniprogrampage"); | ||
} | ||
|
||
public MiniprogrampageMessage(String touser, Miniprogrampage miniprogrampage) { | ||
this(touser); | ||
this.miniprogrampage = miniprogrampage; | ||
} | ||
|
||
private Miniprogrampage miniprogrampage; | ||
|
||
public Miniprogrampage getMiniprogrampage() { | ||
return miniprogrampage; | ||
} | ||
|
||
public void setMiniprogrampage(Miniprogrampage miniprogrampage) { | ||
this.miniprogrampage = miniprogrampage; | ||
} | ||
|
||
public static class Miniprogrampage { | ||
|
||
private String title; | ||
private String pagepath; | ||
private String thumb_media_id; | ||
private String appid; | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getPagepath() { | ||
return pagepath; | ||
} | ||
|
||
public void setPagepath(String pagepath) { | ||
this.pagepath = pagepath; | ||
} | ||
|
||
public String getThumb_media_id() { | ||
return thumb_media_id; | ||
} | ||
|
||
public void setThumb_media_id(String thumb_media_id) { | ||
this.thumb_media_id = thumb_media_id; | ||
} | ||
|
||
public String getAppid() { | ||
return appid; | ||
} | ||
|
||
public void setAppid(String appid) { | ||
this.appid = appid; | ||
} | ||
|
||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/main/java/weixin/popular/bean/message/message/MpnewsMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package weixin.popular.bean.message.message; | ||
|
||
/** | ||
* | ||
* 发送图文消息(点击跳转到图文消息页面) | ||
* | ||
* @since 2.8.26 | ||
* @author LiYi | ||
*/ | ||
public class MpnewsMessage extends Message { | ||
|
||
public MpnewsMessage() { | ||
} | ||
|
||
public MpnewsMessage(String toUser, String mediaId) { | ||
super(toUser, "mpnews"); | ||
this.mpnews = new Mpnews(); | ||
this.mpnews.setMedia_id(mediaId); | ||
} | ||
|
||
private Mpnews mpnews; | ||
|
||
public Mpnews getMpnews() { | ||
return mpnews; | ||
} | ||
|
||
public void setMpnews(Mpnews mpnews) { | ||
this.mpnews = mpnews; | ||
} | ||
|
||
public static class Mpnews { | ||
private String media_id; | ||
|
||
public String getMedia_id() { | ||
return media_id; | ||
} | ||
|
||
public void setMedia_id(String mediaId) { | ||
media_id = mediaId; | ||
} | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
src/main/java/weixin/popular/bean/message/message/MsgmenuMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package weixin.popular.bean.message.message; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 菜单消息 | ||
* | ||
* @since 2.8.26 | ||
* @author LiYi | ||
*/ | ||
public class MsgmenuMessage extends Message { | ||
|
||
public MsgmenuMessage() { | ||
} | ||
|
||
public MsgmenuMessage(String touser, Msgmenu msgmenu) { | ||
super(touser, "msgmenu"); | ||
this.msgmenu = msgmenu; | ||
} | ||
|
||
private Msgmenu msgmenu; | ||
|
||
public Msgmenu getMsgmenu() { | ||
return msgmenu; | ||
} | ||
|
||
public void setMsgmenu(Msgmenu msgmenu) { | ||
this.msgmenu = msgmenu; | ||
} | ||
|
||
public static class Msgmenu { | ||
|
||
private String head_content; | ||
|
||
private String tail_content; | ||
|
||
private List<MenuOption> list; | ||
|
||
public String getHead_content() { | ||
return head_content; | ||
} | ||
|
||
public void setHead_content(String head_content) { | ||
this.head_content = head_content; | ||
} | ||
|
||
public String getTail_content() { | ||
return tail_content; | ||
} | ||
|
||
public void setTail_content(String tail_content) { | ||
this.tail_content = tail_content; | ||
} | ||
|
||
public List<MenuOption> getList() { | ||
return list; | ||
} | ||
|
||
public void setList(List<MenuOption> list) { | ||
this.list = list; | ||
} | ||
|
||
} | ||
|
||
public static class MenuOption { | ||
private String id; | ||
private String content; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters