PicItem.java

  1. package com.foxinmy.weixin4j.model.card;

  2. import com.alibaba.fastjson.annotation.JSONField;

  3. /**
  4.  * 礼品卡货架主题中的卡面结构体
  5.  *
  6.  * @author kit(kit.li@qq.com)
  7.  * @date 2018年10月30日
  8.  */
  9. public class PicItem {
  10.     /**
  11.      * 卡面图片,须先将图片上传至CDN,大小控制在1000 x 600像素以下
  12.      */
  13.     @JSONField(name = "background_pic_url")
  14.     private String backgroundPicUrl;
  15.     /**
  16.      * 自定义的卡面的标识, 非必填
  17.      */
  18.     @JSONField(name = "outer_img_id")
  19.     private String outerImgId;
  20.     /**
  21.      * 该卡面对应的默认祝福语,当用户没有编辑内容时会随卡默认填写为用户祝福内容
  22.      */
  23.     @JSONField(name = "default_gifting_msg")
  24.     private String defaultGiftingMsg;

  25.     public PicItem(){

  26.     }

  27.     public PicItem(String backgroundPicUrl, String defaultGiftingMsg) {
  28.         this.backgroundPicUrl = backgroundPicUrl;
  29.         this.defaultGiftingMsg = defaultGiftingMsg;
  30.     }

  31.     public PicItem(String backgroundPicUrl, String outerImgId, String defaultGiftingMsg) {
  32.         this.backgroundPicUrl = backgroundPicUrl;
  33.         this.outerImgId = outerImgId;
  34.         this.defaultGiftingMsg = defaultGiftingMsg;
  35.     }

  36.     public String getBackgroundPicUrl() {
  37.         return backgroundPicUrl;
  38.     }

  39.     public String getOuterImgId() {
  40.         return outerImgId;
  41.     }

  42.     public String getDefaultGiftingMsg() {
  43.         return defaultGiftingMsg;
  44.     }

  45.     public void setBackgroundPicUrl(String backgroundPicUrl) {
  46.         this.backgroundPicUrl = backgroundPicUrl;
  47.     }

  48.     public void setOuterImgId(String outerImgId) {
  49.         this.outerImgId = outerImgId;
  50.     }

  51.     public void setDefaultGiftingMsg(String defaultGiftingMsg) {
  52.         this.defaultGiftingMsg = defaultGiftingMsg;
  53.     }
  54. }