// 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.material;


/**
 * 上传临时素材后的返回对象
 * Author: haolin
 * Email: haolin.h0@gmail.com
 * Date: 13/11/15
 */
public class TempMaterial implements Serializable {

    private static final long serialVersionUID = -824128825701922924L;

    private MaterialUploadType type;

    @JsonProperty("media_id")
    private String mediaId;

    @JsonProperty("created_at")
// 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/material/TempMaterial.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.material;


/**
 * 上传临时素材后的返回对象
 * Author: haolin
 * Email: haolin.h0@gmail.com
 * Date: 13/11/15
 */
public class TempMaterial implements Serializable {

    private static final long serialVersionUID = -824128825701922924L;

    private MaterialUploadType type;

    @JsonProperty("media_id")
    private String mediaId;

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