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


import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import me.hao0.wechat.serializer.ArticleShareSceneDeserializer;
import java.io.Serializable;
package me.hao0.wechat.model.data.article;


/**
 * 图文分享转发数据
 * Author: haolin
 * Email: haolin.h0@gmail.com
 * Date: 20/11/15
 */
public class ArticleShare implements Serializable {

    private static final long serialVersionUID = -2590968439236572137L;

    /**
     * 日期
     */
    @JsonProperty("ref_date")
    private String date;

    /**
     * 分享场景
     */
    @JsonProperty("share_scene")
// Path: src/main/java/me/hao0/wechat/serializer/ArticleShareSceneDeserializer.java
// public class ArticleShareSceneDeserializer extends JsonDeserializer<ArticleShareScene> {
// 
//     @Override
//     public ArticleShareScene deserialize(JsonParser parser, DeserializationContext ctxt) throws IOException, JsonProcessingException {
//         return ArticleShareScene.from(parser.getIntValue());
//     }
// }


// Path: src/main/java/me/hao0/wechat/model/data/article/ArticleShare.java
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import me.hao0.wechat.serializer.ArticleShareSceneDeserializer;
import java.io.Serializable;

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


/**
 * 图文分享转发数据
 * Author: haolin
 * Email: haolin.h0@gmail.com
 * Date: 20/11/15
 */
public class ArticleShare implements Serializable {

    private static final long serialVersionUID = -2590968439236572137L;

    /**
     * 日期
     */
    @JsonProperty("ref_date")
    private String date;

    /**
     * 分享场景
     */
    @JsonProperty("share_scene")
    @JsonDeserialize(using = ArticleShareSceneDeserializer.class)