com.jfinal.weixin.sdk.msg.in.event

## 类 InFollowEvent

- java.lang.Object
- - com.jfinal.weixin.sdk.msg.in.InMsg
  - - com.jfinal.weixin.sdk.msg.in.event.EventInMsg
    - - com.jfinal.weixin.sdk.msg.in.event.InFollowEvent

- 所有已实现的接口:
    Serializable

      public class InFollowEvent
      extends EventInMsg

           接收 关注/取消关注事件
       <xml>
       <ToUserName><![CDATA[toUser]]></ToUserName>
       <FromUserName><![CDATA[FromUser]]></FromUserName>
       <CreateTime>123456789</CreateTime>
       <MsgType><![CDATA[event]]></MsgType>
       <Event><![CDATA[subscribe]]></Event>
       </xml>

           关注实测数据结果： 比官方文档多出一个 EventKey 标记
       <xml>
       <ToUserName><![CDATA[gh_e21b62f685f4]]></ToUserName>
       <FromUserName><![CDATA[o5Ljujn78A_S0uk_WvAM_fKFEXm4]]></FromUserName>
       <CreateTime>1411785252</CreateTime>
       <MsgType><![CDATA[event]]></MsgType>
       <Event><![CDATA[subscribe]]></Event>
       <EventKey><![CDATA[]]></EventKey>
       </xml>

           取消关注实测数据结果：比官方文档多出一个 EventKey 标记
       <xml>
       <ToUserName><![CDATA[gh_e21b62f685f4]]></ToUserName>
       <FromUserName><![CDATA[o5Ljujn78A_S0uk_WvAM_fKFEXm4]]></FromUserName>
       <CreateTime>1411785559</CreateTime>
       <MsgType><![CDATA[event]]></MsgType>
       <Event><![CDATA[unsubscribe]]></Event>
       <EventKey><![CDATA[]]></EventKey>
       </xml>

  另请参阅:
    序列化表格

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `EVENT_INFOLLOW_SUBSCRIBE`
    `static String` | `EVENT_INFOLLOW_UNSUBSCRIBE`

    - ### 从类继承的字段 com.jfinal.weixin.sdk.msg.in.event.EventInMsg

      `event`

    - ### 从类继承的字段 com.jfinal.weixin.sdk.msg.in.InMsg

      `createTime, fromUserName, msgType, toUserName`

  - ### 构造器概要

    构造器
    构造器和说明
    `InFollowEvent(String toUserName, String fromUserName, Integer createTime, String event)`

  - ### 方法概要

    - ### 从类继承的方法 com.jfinal.weixin.sdk.msg.in.event.EventInMsg

      `getEvent, setEvent`

    - ### 从类继承的方法 com.jfinal.weixin.sdk.msg.in.InMsg

      `getCreateTime, getFromUserName, getMsgType, getToUserName, setCreateTime, setFromUserName, setMsgType, setToUserName`

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

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

- - ### 字段详细资料

    - #### EVENT_INFOLLOW_SUBSCRIBE

          public static final String EVENT_INFOLLOW_SUBSCRIBE

      另请参阅:
        常量字段值

    - #### EVENT_INFOLLOW_UNSUBSCRIBE

          public static final String EVENT_INFOLLOW_UNSUBSCRIBE

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### InFollowEvent

          public InFollowEvent(String toUserName,
                               String fromUserName,
                               Integer createTime,
                               String event)

Copyright © 2017. All rights reserved.