Package com.foxinmy.weixin4j.response
Class NewsResponse
- java.lang.Object
-
- com.foxinmy.weixin4j.response.NewsResponse
-
- All Implemented Interfaces:
WeixinResponse
public class NewsResponse extends Object implements WeixinResponse
回复图文消息- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NewsResponse.Article
图文消息对象
-
Constructor Summary
Constructors Constructor Description NewsResponse(NewsResponse.Article article)
NewsResponse(List<NewsResponse.Article> articleList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NewsResponse.Article>
getArticleList()
String
getMsgType()
回复的消息类型void
pushArticle(NewsResponse.Article article)
void
pushFirstArticle(NewsResponse.Article article)
void
pushLastArticle(NewsResponse.Article article)
NewsResponse.Article
removeFirstArticle()
NewsResponse.Article
removeLastArticle()
String
toContent()
回复的消息内容
-
-
-
Constructor Detail
-
NewsResponse
public NewsResponse(List<NewsResponse.Article> articleList)
-
NewsResponse
public NewsResponse(NewsResponse.Article article)
-
-
Method Detail
-
pushArticle
public void pushArticle(NewsResponse.Article article)
-
pushFirstArticle
public void pushFirstArticle(NewsResponse.Article article)
-
pushLastArticle
public void pushLastArticle(NewsResponse.Article article)
-
removeLastArticle
public NewsResponse.Article removeLastArticle()
-
removeFirstArticle
public NewsResponse.Article removeFirstArticle()
-
getArticleList
public List<NewsResponse.Article> getArticleList()
-
toContent
public String toContent()
Description copied from interface:WeixinResponse
回复的消息内容- Specified by:
toContent
in interfaceWeixinResponse
- Returns:
-
getMsgType
public String getMsgType()
Description copied from interface:WeixinResponse
回复的消息类型- Specified by:
getMsgType
in interfaceWeixinResponse
- Returns:
-
-