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

com.riversoft.weixin.mp.message.xml.MusicXmlMessage Maven / Gradle / Ivy

There is a newer version: 0.9.8
Show newest version
package com.riversoft.weixin.mp.message.xml;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.riversoft.weixin.common.message.MsgType;
import com.riversoft.weixin.common.message.XmlMessageHeader;
import com.riversoft.weixin.mp.message.Music;

import java.util.Date;

/**
 * Created by exizhai on 11/14/2015.
 */
@JacksonXmlRootElement(localName = "xml")
public class MusicXmlMessage extends XmlMessageHeader {

    @JsonProperty("Music")
    private Music music;

    public MusicXmlMessage() {
        this.msgType = MsgType.music;
        this.setCreateTime(new Date());
    }

    public Music getMusic() {
        return music;
    }

    public void setMusic(Music music) {
        this.music = music;
    }

    public MusicXmlMessage music(Music music) {
        this.music = music;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy