com.foxinmy.weixin4j.tuple
Class News

java.lang.Object
  extended by 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
News()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

News

public News()
Method Detail

getMessageType

public String getMessageType()
Description copied from interface: Tuple
消息类型

Specified by:
getMessageType in interface Tuple
Returns:

addArticle

public News addArticle(String title,
                       String desc,
                       String picUrl,
                       String url)
Parameters:
title - 标题
desc - 描述
picUrl - 图片链接
url - 跳转URL

addArticle

public News addArticle(Article... articles)

addFirstArticle

public News addFirstArticle(Article article)

addLastArticle

public void addLastArticle(Article article)

removeFirstArticle

public News removeFirstArticle()

removeLastArticle

public News removeLastArticle()

isMaxCount

public boolean isMaxCount()

getArticles

public List<Article> getArticles()

getFullArticles

public List<Article> getFullArticles()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014–2017. All rights reserved.