// Path: src/main/java/me/hao0/wechat/serializer/DateDeserializer.java
// public class DateDeserializer extends JsonDeserializer<Date> {
//  
//     @Override
//     public Date deserialize(JsonParser parser, DeserializationContext context)
//       throws IOException {
//         return new Date(parser.getIntValue() * 1000L);
//     }
// }


import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import me.hao0.wechat.serializer.DateDeserializer;
import java.io.Serializable;
import java.util.Date;
package me.hao0.wechat.model.user;



/**
 * 用户信息
 * Author: haolin
 * Email: haolin.h0@gmail.com
 * Date: 7/11/15
 */
public class User implements Serializable {

    /**
     * 0未关注，1已关注
     */
    private Integer subscribe;

    @JsonProperty("openid")
    private String openId;

    @JsonProperty("nickname")
    private String nickName;

    /**
     * 0未知，1男，2女
     */
    private Integer sex;

    private String city;

    private String province;

    private String country;

    @JsonProperty("headimgurl")
    private String headImgUrl;

    @JsonProperty("subscribe_time")
// Path: src/main/java/me/hao0/wechat/serializer/DateDeserializer.java
// public class DateDeserializer extends JsonDeserializer<Date> {
//  
//     @Override
//     public Date deserialize(JsonParser parser, DeserializationContext context)
//       throws IOException {
//         return new Date(parser.getIntValue() * 1000L);
//     }
// }


// Path: src/main/java/me/hao0/wechat/model/user/User.java
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import me.hao0.wechat.serializer.DateDeserializer;
import java.io.Serializable;
import java.util.Date;

package me.hao0.wechat.model.user;



/**
 * 用户信息
 * Author: haolin
 * Email: haolin.h0@gmail.com
 * Date: 7/11/15
 */
public class User implements Serializable {

    /**
     * 0未关注，1已关注
     */
    private Integer subscribe;

    @JsonProperty("openid")
    private String openId;

    @JsonProperty("nickname")
    private String nickName;

    /**
     * 0未知，1男，2女
     */
    private Integer sex;

    private String city;

    private String province;

    private String country;

    @JsonProperty("headimgurl")
    private String headImgUrl;

    @JsonProperty("subscribe_time")
    @JsonDeserialize(using = DateDeserializer.class)