Class News

    • 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()
      • getFullArticles

        public List<Article> getFullArticles()