public class WxMpAddDraft implements ToJson, Serializable { private static final long serialVersionUID = 2481699972367293721L; @SerializedName("articles") private List<WxMpDraftArticles> articles; public static WxMpAddDraft fromJson(String json) { return (WxMpAddDraft)WxGsonBuilder.create().fromJson(json, WxMpAddDraft.class); } public String toJson() { return WxGsonBuilder.create().toJson(this); } public static WxMpAddDraftBuilder builder() { return new WxMpAddDraftBuilder(); } public List<WxMpDraftArticles> getArticles() { return this.articles; } public WxMpAddDraft setArticles(List<WxMpDraftArticles> articles) { this.articles = articles; return this; } public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof WxMpAddDraft)) { return false; } else { WxMpAddDraft other = (WxMpAddDraft)o; if (!other.canEqual(this)) { return false; } else { Object this$articles = this.getArticles(); Object other$articles = other.getArticles(); if (this$articles == null) { if (other$articles != null) { return false; } } else if (!this$articles.equals(other$articles)) { return false; } return true; } } } protected boolean canEqual(Object other) { return other instanceof WxMpAddDraft; } public int hashCode() { int PRIME = true; int result = 1; Object $articles = this.getArticles(); result = result * 59 + ($articles == null ? 43 : $articles.hashCode()); return result; } public String toString() { return "WxMpAddDraft(articles=" + this.getArticles() + ")"; } public WxMpAddDraft() { } public WxMpAddDraft(List<WxMpDraftArticles> articles) { this.articles = articles; } public static class WxMpAddDraftBuilder { private List<WxMpDraftArticles> articles; WxMpAddDraftBuilder() { } public WxMpAddDraftBuilder articles(List<WxMpDraftArticles> articles) { this.articles = articles; return this; } public WxMpAddDraft build() { return new WxMpAddDraft(this.articles); } public String toString() { return "WxMpAddDraft.WxMpAddDraftBuilder(articles=" + this.articles + ")"; } } }
时间: 2024-02-10 18:32:53 浏览: 56
Activity之间传递List<T>数据
根据代码可以看出,`WxMpAddDraft` 是一个 Java 类,实现了 `ToJson` 和 `Serializable` 接口。其中包含了一个名为 `articles` 的成员变量,类型为 `List<WxMpDraftArticles>`,以及若干方法,如 `fromJson`、`toJson`、`builder`、`getArticles`、`setArticles` 等等。这个类很可能是用来描述微信公众号草稿箱中新增草稿的相关信息。同时,它还包含了一个内部静态类 `WxMpAddDraftBuilder`,用于构建 `WxMpAddDraft` 对象。
阅读全文