View Javadoc
1   package com.foxinmy.weixin4j.model.card;
2   
3   import com.alibaba.fastjson.annotation.JSONField;
4   
5   /**
6    * 礼品卡货架主题中的卡面结构体
7    *
8    * @author kit(kit.li@qq.com)
9    * @date 2018年10月30日
10   */
11  public class PicItem {
12      /**
13       * 卡面图片,须先将图片上传至CDN,大小控制在1000 x 600像素以下
14       */
15      @JSONField(name = "background_pic_url")
16      private String backgroundPicUrl;
17      /**
18       * 自定义的卡面的标识, 非必填
19       */
20      @JSONField(name = "outer_img_id")
21      private String outerImgId;
22      /**
23       * 该卡面对应的默认祝福语,当用户没有编辑内容时会随卡默认填写为用户祝福内容
24       */
25      @JSONField(name = "default_gifting_msg")
26      private String defaultGiftingMsg;
27  
28      public PicItem(){
29  
30      }
31  
32      public PicItem(String backgroundPicUrl, String defaultGiftingMsg) {
33          this.backgroundPicUrl = backgroundPicUrl;
34          this.defaultGiftingMsg = defaultGiftingMsg;
35      }
36  
37      public PicItem(String backgroundPicUrl, String outerImgId, String defaultGiftingMsg) {
38          this.backgroundPicUrl = backgroundPicUrl;
39          this.outerImgId = outerImgId;
40          this.defaultGiftingMsg = defaultGiftingMsg;
41      }
42  
43      public String getBackgroundPicUrl() {
44          return backgroundPicUrl;
45      }
46  
47      public String getOuterImgId() {
48          return outerImgId;
49      }
50  
51      public String getDefaultGiftingMsg() {
52          return defaultGiftingMsg;
53      }
54  
55      public void setBackgroundPicUrl(String backgroundPicUrl) {
56          this.backgroundPicUrl = backgroundPicUrl;
57      }
58  
59      public void setOuterImgId(String outerImgId) {
60          this.outerImgId = outerImgId;
61      }
62  
63      public void setDefaultGiftingMsg(String defaultGiftingMsg) {
64          this.defaultGiftingMsg = defaultGiftingMsg;
65      }
66  }