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

me.chanjar.weixin.mp.bean.material.WxMpMaterial Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.mp.bean.material;

import lombok.Data;

import java.io.File;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
public class WxMpMaterial implements Serializable {
  private static final long serialVersionUID = -1651816949780969485L;

  private String name;
  private File file;
  private String videoTitle;
  private String videoIntroduction;

  public WxMpMaterial() {
  }

  public WxMpMaterial(String name, File file, String videoTitle, String videoIntroduction) {
    this.name = name;
    this.file = file;
    this.videoTitle = videoTitle;
    this.videoIntroduction = videoIntroduction;
  }

  public Map getForm() {
    Map form = new HashMap<>();
    form.put("title", this.videoTitle);
    form.put("introduction", this.videoIntroduction);
    return form;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy