Package com.foxinmy.weixin4j.tuple
Class News
- java.lang.Object
-
- com.foxinmy.weixin4j.tuple.News
-
- All Implemented Interfaces:
NotifyTuple
,Tuple
,Serializable
public class News extends Object implements NotifyTuple
图文对象可用于「客服消息」
- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description News()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description News
addArticle(Article... articles)
News
addArticle(String title, String desc, String picUrl, String url)
News
addFirstArticle(Article article)
void
addLastArticle(Article article)
List<Article>
getArticles()
List<Article>
getFullArticles()
String
getMessageType()
消息类型boolean
isMaxCount()
News
removeFirstArticle()
News
removeLastArticle()
String
toString()
-
-
-
Method Detail
-
getMessageType
public String getMessageType()
Description copied from interface:Tuple
消息类型- Specified by:
getMessageType
in interfaceTuple
- Returns:
-
addArticle
public News addArticle(String title, String desc, String picUrl, String url)
- Parameters:
title
- 标题desc
- 描述picUrl
- 图片链接url
- 跳转URL
-
addLastArticle
public void addLastArticle(Article article)
-
removeFirstArticle
public News removeFirstArticle()
-
removeLastArticle
public News removeLastArticle()
-
isMaxCount
public boolean isMaxCount()
-
-