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 NewsaddArticle(Article... articles)NewsaddArticle(String title, String desc, String picUrl, String url)NewsaddFirstArticle(Article article)voidaddLastArticle(Article article)List<Article>getArticles()List<Article>getFullArticles()StringgetMessageType()消息类型booleanisMaxCount()NewsremoveFirstArticle()NewsremoveLastArticle()StringtoString()
-
-
-
Method Detail
-
getMessageType
public String getMessageType()
Description copied from interface:Tuple消息类型- Specified by:
getMessageTypein 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()
-
-