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

me.chanjar.weixin.mp.bean.card.TextImageList Maven / Gradle / Ivy

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

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;

/**
 * 图文列表.
 * @author yuanqixun
 * date:2018-08-25 00:35
 */
@Data
public class TextImageList implements Serializable {

  /**
   * 图片链接,必须调用 上传图片接口 上传图片获得链接,并在此填入, 否则报错
   */
  @SerializedName("image_url")
  private String imageUrl;

  /**
   * 图文描述.
   */
  @SerializedName("text")
  private String text;

  @Override
  public String toString() {
    return WxMpGsonBuilder.create().toJson(this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy