com.jfinal.weixin.sdk.msg.out

## 类 OutNewsMsg

- java.lang.Object
- - com.jfinal.weixin.sdk.msg.out.OutMsg
  - - com.jfinal.weixin.sdk.msg.out.OutNewsMsg

- 所有已实现的接口:
    Serializable

      public class OutNewsMsg
      extends OutMsg

          回复图文消息
       <xml>
       <ToUserName><![CDATA[toUser]]></ToUserName>
       <FromUserName><![CDATA[fromUser]]></FromUserName>
       <CreateTime>12345678</CreateTime>
       <MsgType><![CDATA[news]]></MsgType>
       <ArticleCount>2</ArticleCount>
       <Articles>
       <item>
       <Title><![CDATA[title1]]></Title>
       <Description><![CDATA[description1]]></Description>
       <PicUrl><![CDATA[picurl]]></PicUrl>
       <Url><![CDATA[url]]></Url>
       </item>

       <item>
       <Title><![CDATA[title]]></Title>
       <Description><![CDATA[description]]></Description>
       <PicUrl><![CDATA[picurl]]></PicUrl>
       <Url><![CDATA[url]]></Url>
       </item>
       </Articles>
       </xml>

  另请参阅:
    序列化表格

- - ### 字段概要

    - ### 从类继承的字段 com.jfinal.weixin.sdk.msg.out.OutMsg

      `createTime, fromUserName, msgType, toUserName`

  - ### 构造器概要

    构造器
    构造器和说明
    `OutNewsMsg()`
    `OutNewsMsg(InMsg inMsg)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `OutNewsMsg` | `addNews(List<News> articles)`
    `OutNewsMsg` | `addNews(News news)`
    `OutNewsMsg` | `addNews(String title, String description, String picUrl, String url)`
    `Integer` | `getArticleCount()`
    `List<News>` | `getArticles()`
    `void` | `setArticles(List<News> articles)`
    `protected void` | `subXml(StringBuilder sb)`

    - ### 从类继承的方法 com.jfinal.weixin.sdk.msg.out.OutMsg

      `getCreateTime, getFromUserName, getMsgType, getToUserName, now, nullToBlank, setCreateTime, setFromUserName, setMsgType, setToUserName, toXml`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### OutNewsMsg

          public OutNewsMsg()

    - #### OutNewsMsg

          public OutNewsMsg(InMsg inMsg)

  - ### 方法详细资料

    - #### subXml

          protected void subXml(StringBuilder sb)

      指定者:
        `subXml` 在类中 `OutMsg`

    - #### getArticleCount

          public Integer getArticleCount()

    - #### getArticles

          public List<News> getArticles()

    - #### setArticles

          public void setArticles(List<News> articles)

    - #### addNews

          public OutNewsMsg addNews(List<News> articles)

    - #### addNews

          public OutNewsMsg addNews(String title,
                                    String description,
                                    String picUrl,
                                    String url)

    - #### addNews

          public OutNewsMsg addNews(News news)

Copyright © 2017. All rights reserved.