package me.chanjar.weixin.common.bean.result;

import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

public class WxMediaUploadResult implements Serializable {
  private static final long serialVersionUID = 330834334738622341L;

  private String type;
  private String mediaId;
  private String thumbMediaId;
  private long createdAt;

  public static WxMediaUploadResult fromJson(String json) {
    return WxGsonBuilder.create().fromJson(json, WxMediaUploadResult.class);
  }

  public String getType() {
    return this.type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getMediaId() {
    return this.mediaId;
  }

  public void setMediaId(String mediaId) {
    this.mediaId = mediaId;
  }

  public long getCreatedAt() {
    return this.createdAt;
  }

  public void setCreatedAt(long createdAt) {
    this.createdAt = createdAt;
  }

  public String getThumbMediaId() {
    return this.thumbMediaId;
  }

  public void setThumbMediaId(String thumbMediaId) {
    this.thumbMediaId = thumbMediaId;
  }

  @Override
  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
  }

}

@@ -81,76 +81,16 @@
 til.
-json.WxGsonBuilder;%0Aimport org.apache.commons.lang3.builder.
 ToString
 Buil
@@ -85,23 +85,21 @@
 ToString
-Builder
+Utils
 ;%0Aimport
@@ -103,54 +103,56 @@
 ort 
-org.apache.commons.lang3.builder.ToStringStyle
+me.chanjar.weixin.common.util.json.WxGsonBuilder
 ;%0A%0Ai
@@ -1189,65 +1189,33 @@
 ring
-Builder.reflectionToString(this, ToStringStyle.JSON_STYLE
+Utils.toSimpleString(this
 );%0A 

清理代码，避免过度依赖容易引起冲突的类库代码