// Path: src/main/java/me/hao0/wechat/serializer/ArticleSourceDeserializer.java
// public class ArticleSourceDeserializer extends JsonDeserializer<ArticleSource> {
// 
//     @Override
//     public ArticleSource deserialize(JsonParser parser, DeserializationContext ctxt) throws IOException, JsonProcessingException {
//         return ArticleSource.from(parser.getIntValue());
//     }
// }


import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import me.hao0.wechat.serializer.ArticleSourceDeserializer;
package me.hao0.wechat.model.data.article;


/**
 * 图文统计分时数据
 * Author: haolin
 * Email: haolin.h0@gmail.com
 * Date: 20/11/15
 */
public class ArticleSummaryHour extends CommonSummary {

    private static final long serialVersionUID = -5668724641461918373L;

    /**
     * 用户渠道
     */
    @JsonProperty("user_source")
// Path: src/main/java/me/hao0/wechat/serializer/ArticleSourceDeserializer.java
// public class ArticleSourceDeserializer extends JsonDeserializer<ArticleSource> {
// 
//     @Override
//     public ArticleSource deserialize(JsonParser parser, DeserializationContext ctxt) throws IOException, JsonProcessingException {
//         return ArticleSource.from(parser.getIntValue());
//     }
// }


// Path: src/main/java/me/hao0/wechat/model/data/article/ArticleSummaryHour.java
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import me.hao0.wechat.serializer.ArticleSourceDeserializer;

package me.hao0.wechat.model.data.article;


/**
 * 图文统计分时数据
 * Author: haolin
 * Email: haolin.h0@gmail.com
 * Date: 20/11/15
 */
public class ArticleSummaryHour extends CommonSummary {

    private static final long serialVersionUID = -5668724641461918373L;

    /**
     * 用户渠道
     */
    @JsonProperty("user_source")
    @JsonDeserialize(using = ArticleSourceDeserializer.class)