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

com.blr19c.common.wxCp.model.msg.File Maven / Gradle / Ivy

Go to download

The blr19c-common library contains utility classes, Map/Stream implementation, sending enterprise WeChat, IP/ip address acquisition, mybatis-plus separation implementation, and so on.

There is a newer version: 1.4.4
Show newest version
package com.blr19c.common.wxCp.model.msg;


import com.blr19c.common.collection.PictogramMap;

import java.util.Map;


/**
 * 文件消息
 *
 * @author blr
 */
public class File implements Msg, Escape {
    private String mediaId;

    public File(String mediaId) {
        this.mediaId = mediaId;
    }

    public File() {
    }

    @Override
    public Map toMap() {
        return PictogramMap.getInstance().putValueNonNull("media_id", mediaId).getMap();
    }

    public String getMediaId() {
        return mediaId;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy