1 package com.foxinmy.weixin4j.wxa.api; 2 3 import java.io.Serializable; 4 5 import com.alibaba.fastjson.annotation.JSONField; 6 7 class WxaCodeParameter implements Serializable { 8 9 private static final long serialVersionUID = 2018052201L; 10 11 private String path; 12 private Integer width; 13 private Boolean autoColor; 14 private Color color; 15 private Boolean hyaline; 16 17 public WxaCodeParameter( 18 String path, 19 Integer width, 20 Boolean autoColor, 21 java.awt.Color color, 22 Boolean hyaline 23 ) { 24 this.path = path; 25 this.width = width; 26 this.autoColor = autoColor; 27 if (color != null) { 28 this.color = new Color(color); 29 } 30 this.hyaline = hyaline; 31 } 32 33 public String getPath() { 34 return path; 35 } 36 37 public void setPath(String path) { 38 this.path = path; 39 } 40 41 public Integer getWidth() { 42 return width; 43 } 44 45 public void setWidth(Integer width) { 46 this.width = width; 47 } 48 49 @JSONField(name = "auto_color") 50 public Boolean getAutoColor() { 51 return autoColor; 52 } 53 54 public void setAutoColor(Boolean autoColor) { 55 this.autoColor = autoColor; 56 } 57 58 @JSONField(name = "line_color") 59 public Color getColor() { 60 return color; 61 } 62 63 public void setColor(Color color) { 64 this.color = color; 65 } 66 67 @JSONField(name = "is_hyaline") 68 public Boolean getHyaline() { 69 return hyaline; 70 } 71 72 public void setHyaline(Boolean hyaline) { 73 this.hyaline = hyaline; 74 } 75 76 }