All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.riversoft.weixin.common.media.Media Maven / Gradle / Ivy

There is a newer version: 0.9.8
Show newest version
package com.riversoft.weixin.common.media;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.riversoft.weixin.common.util.DateDeserializer;

import java.util.Date;

/**
 * Created by exizhai on 11/21/2015.
 */
public class Media {

    private MediaType type;

    @JsonProperty("media_id")
    private String mediaId;

    @JsonDeserialize(using = DateDeserializer.class)
    @JsonProperty("created_at")
    private Date createdAt;

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public MediaType getType() {
        return type;
    }

    public void setType(MediaType type) {
        this.type = type;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy