mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-23 22:11:40 +08:00
add missing @Override annotation
This commit is contained in:
parent
473feaf3b7
commit
76e1da564a
@ -191,6 +191,7 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage {
|
|||||||
this.oauth2redirectUri = oauth2redirectUri;
|
this.oauth2redirectUri = oauth2redirectUri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getHttpProxyHost() {
|
public String getHttpProxyHost() {
|
||||||
return this.httpProxyHost;
|
return this.httpProxyHost;
|
||||||
}
|
}
|
||||||
@ -199,6 +200,7 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage {
|
|||||||
this.httpProxyHost = httpProxyHost;
|
this.httpProxyHost = httpProxyHost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public int getHttpProxyPort() {
|
public int getHttpProxyPort() {
|
||||||
return this.httpProxyPort;
|
return this.httpProxyPort;
|
||||||
}
|
}
|
||||||
@ -207,6 +209,7 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage {
|
|||||||
this.httpProxyPort = httpProxyPort;
|
this.httpProxyPort = httpProxyPort;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getHttpProxyUsername() {
|
public String getHttpProxyUsername() {
|
||||||
return this.httpProxyUsername;
|
return this.httpProxyUsername;
|
||||||
}
|
}
|
||||||
@ -215,6 +218,7 @@ public class WxMpInMemoryConfigStorage implements WxMpConfigStorage {
|
|||||||
this.httpProxyUsername = httpProxyUsername;
|
this.httpProxyUsername = httpProxyUsername;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getHttpProxyPassword() {
|
public String getHttpProxyPassword() {
|
||||||
return this.httpProxyPassword;
|
return this.httpProxyPassword;
|
||||||
}
|
}
|
||||||
|
@ -161,6 +161,7 @@ public class WxMpMessageRouter {
|
|||||||
if(rule.isAsync()) {
|
if(rule.isAsync()) {
|
||||||
futures.add(
|
futures.add(
|
||||||
executorService.submit(new Runnable() {
|
executorService.submit(new Runnable() {
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
rule.service(wxMessage, wxMpService, sessionManager, exceptionHandler);
|
rule.service(wxMessage, wxMpService, sessionManager, exceptionHandler);
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@ public final class ImageBuilder extends BaseBuilder<ImageBuilder> {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpCustomMessage build() {
|
public WxMpCustomMessage build() {
|
||||||
WxMpCustomMessage m = super.build();
|
WxMpCustomMessage m = super.build();
|
||||||
m.setMediaId(this.mediaId);
|
m.setMediaId(this.mediaId);
|
||||||
|
@ -52,6 +52,7 @@ public final class MusicBuilder extends BaseBuilder<MusicBuilder> {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpCustomMessage build() {
|
public WxMpCustomMessage build() {
|
||||||
WxMpCustomMessage m = super.build();
|
WxMpCustomMessage m = super.build();
|
||||||
m.setMusicUrl(this.musicUrl);
|
m.setMusicUrl(this.musicUrl);
|
||||||
|
@ -28,6 +28,7 @@ public final class NewsBuilder extends BaseBuilder<NewsBuilder> {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpCustomMessage build() {
|
public WxMpCustomMessage build() {
|
||||||
WxMpCustomMessage m = super.build();
|
WxMpCustomMessage m = super.build();
|
||||||
m.setArticles(this.articles);
|
m.setArticles(this.articles);
|
||||||
|
@ -23,6 +23,7 @@ public final class TextBuilder extends BaseBuilder<TextBuilder> {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpCustomMessage build() {
|
public WxMpCustomMessage build() {
|
||||||
WxMpCustomMessage m = super.build();
|
WxMpCustomMessage m = super.build();
|
||||||
m.setContent(this.content);
|
m.setContent(this.content);
|
||||||
|
@ -47,6 +47,7 @@ public final class VideoBuilder extends BaseBuilder<VideoBuilder> {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpCustomMessage build() {
|
public WxMpCustomMessage build() {
|
||||||
WxMpCustomMessage m = super.build();
|
WxMpCustomMessage m = super.build();
|
||||||
m.setMediaId(this.mediaId);
|
m.setMediaId(this.mediaId);
|
||||||
|
@ -23,6 +23,7 @@ public final class VoiceBuilder extends BaseBuilder<VoiceBuilder> {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpCustomMessage build() {
|
public WxMpCustomMessage build() {
|
||||||
WxMpCustomMessage m = super.build();
|
WxMpCustomMessage m = super.build();
|
||||||
m.setMediaId(this.mediaId);
|
m.setMediaId(this.mediaId);
|
||||||
|
@ -15,6 +15,7 @@ public final class ImageBuilder extends BaseBuilder<ImageBuilder, WxMpXmlOutImag
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpXmlOutImageMessage build() {
|
public WxMpXmlOutImageMessage build() {
|
||||||
WxMpXmlOutImageMessage m = new WxMpXmlOutImageMessage();
|
WxMpXmlOutImageMessage m = new WxMpXmlOutImageMessage();
|
||||||
setCommon(m);
|
setCommon(m);
|
||||||
|
@ -40,6 +40,7 @@ public final class MusicBuilder extends BaseBuilder<MusicBuilder, WxMpXmlOutMusi
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpXmlOutMusicMessage build() {
|
public WxMpXmlOutMusicMessage build() {
|
||||||
WxMpXmlOutMusicMessage m = new WxMpXmlOutMusicMessage();
|
WxMpXmlOutMusicMessage m = new WxMpXmlOutMusicMessage();
|
||||||
setCommon(m);
|
setCommon(m);
|
||||||
|
@ -18,6 +18,7 @@ public final class NewsBuilder extends BaseBuilder<NewsBuilder, WxMpXmlOutNewsMe
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpXmlOutNewsMessage build() {
|
public WxMpXmlOutNewsMessage build() {
|
||||||
WxMpXmlOutNewsMessage m = new WxMpXmlOutNewsMessage();
|
WxMpXmlOutNewsMessage m = new WxMpXmlOutNewsMessage();
|
||||||
for(WxMpXmlOutNewsMessage.Item item : articles) {
|
for(WxMpXmlOutNewsMessage.Item item : articles) {
|
||||||
|
@ -15,6 +15,7 @@ public final class TextBuilder extends BaseBuilder<TextBuilder, WxMpXmlOutTextMe
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpXmlOutTextMessage build() {
|
public WxMpXmlOutTextMessage build() {
|
||||||
WxMpXmlOutTextMessage m = new WxMpXmlOutTextMessage();
|
WxMpXmlOutTextMessage m = new WxMpXmlOutTextMessage();
|
||||||
setCommon(m);
|
setCommon(m);
|
||||||
|
@ -26,6 +26,7 @@ public final class VideoBuilder extends BaseBuilder<VideoBuilder, WxMpXmlOutVide
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpXmlOutVideoMessage build() {
|
public WxMpXmlOutVideoMessage build() {
|
||||||
WxMpXmlOutVideoMessage m = new WxMpXmlOutVideoMessage();
|
WxMpXmlOutVideoMessage m = new WxMpXmlOutVideoMessage();
|
||||||
setCommon(m);
|
setCommon(m);
|
||||||
|
@ -15,6 +15,7 @@ public final class VoiceBuilder extends BaseBuilder<VoiceBuilder, WxMpXmlOutVoic
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpXmlOutVoiceMessage build() {
|
public WxMpXmlOutVoiceMessage build() {
|
||||||
WxMpXmlOutVoiceMessage m = new WxMpXmlOutVoiceMessage();
|
WxMpXmlOutVoiceMessage m = new WxMpXmlOutVoiceMessage();
|
||||||
setCommon(m);
|
setCommon(m);
|
||||||
|
@ -24,6 +24,7 @@ public class MaterialDeleteRequestExecutor implements RequestExecutor<Boolean, S
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Boolean execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, String materialId) throws WxErrorException, IOException {
|
public Boolean execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, String materialId) throws WxErrorException, IOException {
|
||||||
HttpPost httpPost = new HttpPost(uri);
|
HttpPost httpPost = new HttpPost(uri);
|
||||||
if (httpProxy != null) {
|
if (httpProxy != null) {
|
||||||
|
@ -25,6 +25,7 @@ public class MaterialNewsInfoRequestExecutor implements RequestExecutor<WxMpMate
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialNews execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, String materialId) throws WxErrorException, IOException {
|
public WxMpMaterialNews execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, String materialId) throws WxErrorException, IOException {
|
||||||
HttpPost httpPost = new HttpPost(uri);
|
HttpPost httpPost = new HttpPost(uri);
|
||||||
if (httpProxy != null) {
|
if (httpProxy != null) {
|
||||||
|
@ -24,6 +24,7 @@ public class MaterialVideoInfoRequestExecutor implements RequestExecutor<WxMpMat
|
|||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialVideoInfoResult execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, String materialId) throws WxErrorException, IOException {
|
public WxMpMaterialVideoInfoResult execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, String materialId) throws WxErrorException, IOException {
|
||||||
HttpPost httpPost = new HttpPost(uri);
|
HttpPost httpPost = new HttpPost(uri);
|
||||||
if (httpProxy != null) {
|
if (httpProxy != null) {
|
||||||
|
@ -34,6 +34,7 @@ public class MaterialVoiceAndImageDownloadRequestExecutor implements RequestExec
|
|||||||
this.tmpDirFile = tmpDirFile;
|
this.tmpDirFile = tmpDirFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public InputStream execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, String materialId) throws WxErrorException, IOException {
|
public InputStream execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, String materialId) throws WxErrorException, IOException {
|
||||||
HttpPost httpPost = new HttpPost(uri);
|
HttpPost httpPost = new HttpPost(uri);
|
||||||
if (httpProxy != null) {
|
if (httpProxy != null) {
|
||||||
|
@ -18,6 +18,7 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
|
|
||||||
public class WxMpCustomMessageGsonAdapter implements JsonSerializer<WxMpCustomMessage> {
|
public class WxMpCustomMessageGsonAdapter implements JsonSerializer<WxMpCustomMessage> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpCustomMessage message, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpCustomMessage message, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject messageJson = new JsonObject();
|
JsonObject messageJson = new JsonObject();
|
||||||
messageJson.addProperty("touser", message.getToUser());
|
messageJson.addProperty("touser", message.getToUser());
|
||||||
|
@ -16,6 +16,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpGroupGsonAdapter implements JsonSerializer<WxMpGroup>, JsonDeserializer<WxMpGroup> {
|
public class WxMpGroupGsonAdapter implements JsonSerializer<WxMpGroup>, JsonDeserializer<WxMpGroup> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpGroup group, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpGroup group, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject json = new JsonObject();
|
JsonObject json = new JsonObject();
|
||||||
JsonObject groupJson = new JsonObject();
|
JsonObject groupJson = new JsonObject();
|
||||||
@ -26,6 +27,7 @@ public class WxMpGroupGsonAdapter implements JsonSerializer<WxMpGroup>, JsonDese
|
|||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpGroup deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpGroup deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxMpGroup group = new WxMpGroup();
|
WxMpGroup group = new WxMpGroup();
|
||||||
JsonObject groupJson = json.getAsJsonObject();
|
JsonObject groupJson = json.getAsJsonObject();
|
||||||
|
@ -19,6 +19,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpMassGroupMessageGsonAdapter implements JsonSerializer<WxMpMassGroupMessage> {
|
public class WxMpMassGroupMessageGsonAdapter implements JsonSerializer<WxMpMassGroupMessage> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpMassGroupMessage message, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpMassGroupMessage message, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject messageJson = new JsonObject();
|
JsonObject messageJson = new JsonObject();
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpMassNewsArticleGsonAdapter implements JsonSerializer<WxMpMassNews.WxMpMassNewsArticle>, JsonDeserializer<WxMpMassNews.WxMpMassNewsArticle> {
|
public class WxMpMassNewsArticleGsonAdapter implements JsonSerializer<WxMpMassNews.WxMpMassNewsArticle>, JsonDeserializer<WxMpMassNews.WxMpMassNewsArticle> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpMassNews.WxMpMassNewsArticle article, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpMassNews.WxMpMassNewsArticle article, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject articleJson = new JsonObject();
|
JsonObject articleJson = new JsonObject();
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ public class WxMpMassNewsArticleGsonAdapter implements JsonSerializer<WxMpMassNe
|
|||||||
return articleJson;
|
return articleJson;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMassNews.WxMpMassNewsArticle deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
public WxMpMassNews.WxMpMassNewsArticle deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||||
JsonObject articleInfo = jsonElement.getAsJsonObject();
|
JsonObject articleInfo = jsonElement.getAsJsonObject();
|
||||||
WxMpMassNews.WxMpMassNewsArticle article = new WxMpMassNews.WxMpMassNewsArticle();
|
WxMpMassNews.WxMpMassNewsArticle article = new WxMpMassNews.WxMpMassNewsArticle();
|
||||||
|
@ -15,6 +15,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpMassNewsGsonAdapter implements JsonSerializer<WxMpMassNews>, JsonDeserializer<WxMpMassNews> {
|
public class WxMpMassNewsGsonAdapter implements JsonSerializer<WxMpMassNews>, JsonDeserializer<WxMpMassNews> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpMassNews message, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpMassNews message, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject newsJson = new JsonObject();
|
JsonObject newsJson = new JsonObject();
|
||||||
|
|
||||||
@ -28,6 +29,7 @@ public class WxMpMassNewsGsonAdapter implements JsonSerializer<WxMpMassNews>, Js
|
|||||||
return newsJson;
|
return newsJson;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMassNews deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
public WxMpMassNews deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||||
WxMpMassNews wxMpMassNews = new WxMpMassNews();
|
WxMpMassNews wxMpMassNews = new WxMpMassNews();
|
||||||
JsonObject json = jsonElement.getAsJsonObject();
|
JsonObject json = jsonElement.getAsJsonObject();
|
||||||
|
@ -16,6 +16,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpMassOpenIdsMessageGsonAdapter implements JsonSerializer<WxMpMassOpenIdsMessage> {
|
public class WxMpMassOpenIdsMessageGsonAdapter implements JsonSerializer<WxMpMassOpenIdsMessage> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpMassOpenIdsMessage message, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpMassOpenIdsMessage message, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject messageJson = new JsonObject();
|
JsonObject messageJson = new JsonObject();
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ import java.lang.reflect.Type;
|
|||||||
*/
|
*/
|
||||||
public class WxMpMassSendResultAdapter implements JsonDeserializer<WxMpMassSendResult> {
|
public class WxMpMassSendResultAdapter implements JsonDeserializer<WxMpMassSendResult> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMassSendResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpMassSendResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxMpMassSendResult sendResult = new WxMpMassSendResult();
|
WxMpMassSendResult sendResult = new WxMpMassSendResult();
|
||||||
JsonObject sendResultJsonObject = json.getAsJsonObject();
|
JsonObject sendResultJsonObject = json.getAsJsonObject();
|
||||||
|
@ -21,6 +21,7 @@ import java.lang.reflect.Type;
|
|||||||
*/
|
*/
|
||||||
public class WxMpMassUploadResultAdapter implements JsonDeserializer<WxMpMassUploadResult> {
|
public class WxMpMassUploadResultAdapter implements JsonDeserializer<WxMpMassUploadResult> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMassUploadResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpMassUploadResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxMpMassUploadResult uploadResult = new WxMpMassUploadResult();
|
WxMpMassUploadResult uploadResult = new WxMpMassUploadResult();
|
||||||
JsonObject uploadResultJsonObject = json.getAsJsonObject();
|
JsonObject uploadResultJsonObject = json.getAsJsonObject();
|
||||||
|
@ -23,6 +23,7 @@ import java.lang.reflect.Type;
|
|||||||
*/
|
*/
|
||||||
public class WxMpMassVideoAdapter implements JsonSerializer<WxMpMassVideo> {
|
public class WxMpMassVideoAdapter implements JsonSerializer<WxMpMassVideo> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpMassVideo message, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpMassVideo message, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject messageJson = new JsonObject();
|
JsonObject messageJson = new JsonObject();
|
||||||
messageJson.addProperty("media_id", message.getMediaId());
|
messageJson.addProperty("media_id", message.getMediaId());
|
||||||
|
@ -19,6 +19,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpMaterialArticleUpdateGsonAdapter implements JsonSerializer<WxMpMaterialArticleUpdate> {
|
public class WxMpMaterialArticleUpdateGsonAdapter implements JsonSerializer<WxMpMaterialArticleUpdate> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpMaterialArticleUpdate wxMpMaterialArticleUpdate, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpMaterialArticleUpdate wxMpMaterialArticleUpdate, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject articleUpdateJson = new JsonObject();
|
JsonObject articleUpdateJson = new JsonObject();
|
||||||
articleUpdateJson.addProperty("media_id", wxMpMaterialArticleUpdate.getMediaId());
|
articleUpdateJson.addProperty("media_id", wxMpMaterialArticleUpdate.getMediaId());
|
||||||
|
@ -19,6 +19,7 @@ import java.lang.reflect.Type;
|
|||||||
*/
|
*/
|
||||||
public class WxMpMaterialCountResultAdapter implements JsonDeserializer<WxMpMaterialCountResult> {
|
public class WxMpMaterialCountResultAdapter implements JsonDeserializer<WxMpMaterialCountResult> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialCountResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpMaterialCountResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxMpMaterialCountResult countResult = new WxMpMaterialCountResult();
|
WxMpMaterialCountResult countResult = new WxMpMaterialCountResult();
|
||||||
JsonObject materialCountResultJsonObject = json.getAsJsonObject();
|
JsonObject materialCountResultJsonObject = json.getAsJsonObject();
|
||||||
|
@ -18,6 +18,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public class WxMpMaterialFileBatchGetGsonAdapter implements JsonDeserializer<WxMpMaterialFileBatchGetResult> {
|
public class WxMpMaterialFileBatchGetGsonAdapter implements JsonDeserializer<WxMpMaterialFileBatchGetResult> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialFileBatchGetResult deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
public WxMpMaterialFileBatchGetResult deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||||
WxMpMaterialFileBatchGetResult wxMpMaterialFileBatchGetResult = new WxMpMaterialFileBatchGetResult();
|
WxMpMaterialFileBatchGetResult wxMpMaterialFileBatchGetResult = new WxMpMaterialFileBatchGetResult();
|
||||||
JsonObject json = jsonElement.getAsJsonObject();
|
JsonObject json = jsonElement.getAsJsonObject();
|
||||||
|
@ -17,6 +17,7 @@ import java.util.Date;
|
|||||||
|
|
||||||
public class WxMpMaterialFileBatchGetGsonItemAdapter implements JsonDeserializer<WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem> {
|
public class WxMpMaterialFileBatchGetGsonItemAdapter implements JsonDeserializer<WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
public WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||||
WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem wxMaterialFileBatchGetNewsItem = new WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem();
|
WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem wxMaterialFileBatchGetNewsItem = new WxMpMaterialFileBatchGetResult.WxMaterialFileBatchGetNewsItem();
|
||||||
JsonObject json = jsonElement.getAsJsonObject();
|
JsonObject json = jsonElement.getAsJsonObject();
|
||||||
|
@ -16,6 +16,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpMaterialNewsArticleGsonAdapter implements JsonSerializer<WxMpMaterialNews.WxMpMaterialNewsArticle>, JsonDeserializer<WxMpMaterialNews.WxMpMaterialNewsArticle> {
|
public class WxMpMaterialNewsArticleGsonAdapter implements JsonSerializer<WxMpMaterialNews.WxMpMaterialNewsArticle>, JsonDeserializer<WxMpMaterialNews.WxMpMaterialNewsArticle> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpMaterialNews.WxMpMaterialNewsArticle article, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpMaterialNews.WxMpMaterialNewsArticle article, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject articleJson = new JsonObject();
|
JsonObject articleJson = new JsonObject();
|
||||||
|
|
||||||
@ -39,6 +40,7 @@ public class WxMpMaterialNewsArticleGsonAdapter implements JsonSerializer<WxMpMa
|
|||||||
return articleJson;
|
return articleJson;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialNews.WxMpMaterialNewsArticle deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
public WxMpMaterialNews.WxMpMaterialNewsArticle deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||||
JsonObject articleInfo = jsonElement.getAsJsonObject();
|
JsonObject articleInfo = jsonElement.getAsJsonObject();
|
||||||
WxMpMaterialNews.WxMpMaterialNewsArticle article = new WxMpMaterialNews.WxMpMaterialNewsArticle();
|
WxMpMaterialNews.WxMpMaterialNewsArticle article = new WxMpMaterialNews.WxMpMaterialNewsArticle();
|
||||||
|
@ -18,6 +18,7 @@ import java.util.List;
|
|||||||
|
|
||||||
public class WxMpMaterialNewsBatchGetGsonAdapter implements JsonDeserializer<WxMpMaterialNewsBatchGetResult> {
|
public class WxMpMaterialNewsBatchGetGsonAdapter implements JsonDeserializer<WxMpMaterialNewsBatchGetResult> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialNewsBatchGetResult deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
public WxMpMaterialNewsBatchGetResult deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||||
WxMpMaterialNewsBatchGetResult wxMpMaterialNewsBatchGetResult = new WxMpMaterialNewsBatchGetResult();
|
WxMpMaterialNewsBatchGetResult wxMpMaterialNewsBatchGetResult = new WxMpMaterialNewsBatchGetResult();
|
||||||
JsonObject json = jsonElement.getAsJsonObject();
|
JsonObject json = jsonElement.getAsJsonObject();
|
||||||
|
@ -18,6 +18,7 @@ import java.util.Date;
|
|||||||
|
|
||||||
public class WxMpMaterialNewsBatchGetGsonItemAdapter implements JsonDeserializer<WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem> {
|
public class WxMpMaterialNewsBatchGetGsonItemAdapter implements JsonDeserializer<WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
public WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||||
WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem wxMaterialNewsBatchGetNewsItem = new WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem();
|
WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem wxMaterialNewsBatchGetNewsItem = new WxMpMaterialNewsBatchGetResult.WxMaterialNewsBatchGetNewsItem();
|
||||||
JsonObject json = jsonElement.getAsJsonObject();
|
JsonObject json = jsonElement.getAsJsonObject();
|
||||||
|
@ -15,6 +15,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpMaterialNewsGsonAdapter implements JsonSerializer<WxMpMaterialNews>, JsonDeserializer<WxMpMaterialNews> {
|
public class WxMpMaterialNewsGsonAdapter implements JsonSerializer<WxMpMaterialNews>, JsonDeserializer<WxMpMaterialNews> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpMaterialNews wxMpMaterialNews, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpMaterialNews wxMpMaterialNews, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject newsJson = new JsonObject();
|
JsonObject newsJson = new JsonObject();
|
||||||
|
|
||||||
@ -28,6 +29,7 @@ public class WxMpMaterialNewsGsonAdapter implements JsonSerializer<WxMpMaterialN
|
|||||||
return newsJson;
|
return newsJson;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialNews deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
public WxMpMaterialNews deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
|
||||||
WxMpMaterialNews wxMpMaterialNews = new WxMpMaterialNews();
|
WxMpMaterialNews wxMpMaterialNews = new WxMpMaterialNews();
|
||||||
JsonObject json = jsonElement.getAsJsonObject();
|
JsonObject json = jsonElement.getAsJsonObject();
|
||||||
|
@ -19,6 +19,7 @@ import java.lang.reflect.Type;
|
|||||||
*/
|
*/
|
||||||
public class WxMpMaterialUploadResultAdapter implements JsonDeserializer<WxMpMaterialUploadResult> {
|
public class WxMpMaterialUploadResultAdapter implements JsonDeserializer<WxMpMaterialUploadResult> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialUploadResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpMaterialUploadResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxMpMaterialUploadResult uploadResult = new WxMpMaterialUploadResult();
|
WxMpMaterialUploadResult uploadResult = new WxMpMaterialUploadResult();
|
||||||
JsonObject uploadResultJsonObject = json.getAsJsonObject();
|
JsonObject uploadResultJsonObject = json.getAsJsonObject();
|
||||||
|
@ -11,6 +11,7 @@ import java.lang.reflect.Type;
|
|||||||
*/
|
*/
|
||||||
public class WxMpMaterialVideoInfoResultAdapter implements JsonDeserializer<WxMpMaterialVideoInfoResult> {
|
public class WxMpMaterialVideoInfoResultAdapter implements JsonDeserializer<WxMpMaterialVideoInfoResult> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpMaterialVideoInfoResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpMaterialVideoInfoResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxMpMaterialVideoInfoResult uploadResult = new WxMpMaterialVideoInfoResult();
|
WxMpMaterialVideoInfoResult uploadResult = new WxMpMaterialVideoInfoResult();
|
||||||
JsonObject uploadResultJsonObject = json.getAsJsonObject();
|
JsonObject uploadResultJsonObject = json.getAsJsonObject();
|
||||||
|
@ -13,6 +13,7 @@ import me.chanjar.weixin.mp.bean.result.WxMpOAuth2AccessToken;
|
|||||||
|
|
||||||
public class WxMpOAuth2AccessTokenAdapter implements JsonDeserializer<WxMpOAuth2AccessToken> {
|
public class WxMpOAuth2AccessTokenAdapter implements JsonDeserializer<WxMpOAuth2AccessToken> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpOAuth2AccessToken deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws
|
public WxMpOAuth2AccessToken deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws
|
||||||
JsonParseException {
|
JsonParseException {
|
||||||
WxMpOAuth2AccessToken accessToken = new WxMpOAuth2AccessToken();
|
WxMpOAuth2AccessToken accessToken = new WxMpOAuth2AccessToken();
|
||||||
|
@ -21,6 +21,7 @@ import java.lang.reflect.Type;
|
|||||||
*/
|
*/
|
||||||
public class WxMpSemanticQueryResultAdapter implements JsonDeserializer<WxMpSemanticQueryResult> {
|
public class WxMpSemanticQueryResultAdapter implements JsonDeserializer<WxMpSemanticQueryResult> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpSemanticQueryResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpSemanticQueryResult deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxMpSemanticQueryResult result = new WxMpSemanticQueryResult();
|
WxMpSemanticQueryResult result = new WxMpSemanticQueryResult();
|
||||||
JsonObject resultJsonObject = json.getAsJsonObject();
|
JsonObject resultJsonObject = json.getAsJsonObject();
|
||||||
|
@ -19,6 +19,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpTemplateMessageGsonAdapter implements JsonSerializer<WxMpTemplateMessage> {
|
public class WxMpTemplateMessageGsonAdapter implements JsonSerializer<WxMpTemplateMessage> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public JsonElement serialize(WxMpTemplateMessage message, Type typeOfSrc, JsonSerializationContext context) {
|
public JsonElement serialize(WxMpTemplateMessage message, Type typeOfSrc, JsonSerializationContext context) {
|
||||||
JsonObject messageJson = new JsonObject();
|
JsonObject messageJson = new JsonObject();
|
||||||
messageJson.addProperty("touser", message.getToUser());
|
messageJson.addProperty("touser", message.getToUser());
|
||||||
|
@ -25,6 +25,7 @@ public class WxMpUserCumulateGsonAdapter implements JsonDeserializer<WxDataCubeU
|
|||||||
|
|
||||||
private static final SimpleDateFormat SIMPLE_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
|
private static final SimpleDateFormat SIMPLE_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxDataCubeUserCumulate deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxDataCubeUserCumulate deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxDataCubeUserCumulate cumulate = new WxDataCubeUserCumulate();
|
WxDataCubeUserCumulate cumulate = new WxDataCubeUserCumulate();
|
||||||
JsonObject summaryJsonObject = json.getAsJsonObject();
|
JsonObject summaryJsonObject = json.getAsJsonObject();
|
||||||
|
@ -16,6 +16,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxMpUserGsonAdapter implements JsonDeserializer<WxMpUser> {
|
public class WxMpUserGsonAdapter implements JsonDeserializer<WxMpUser> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpUser deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
JsonObject o = json.getAsJsonObject();
|
JsonObject o = json.getAsJsonObject();
|
||||||
WxMpUser wxMpUser = new WxMpUser();
|
WxMpUser wxMpUser = new WxMpUser();
|
||||||
|
@ -23,6 +23,7 @@ public class WxMpUserSummaryGsonAdapter implements JsonDeserializer<WxDataCubeUs
|
|||||||
|
|
||||||
private static final SimpleDateFormat SIMPLE_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
|
private static final SimpleDateFormat SIMPLE_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxDataCubeUserSummary deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
|
public WxDataCubeUserSummary deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
|
||||||
throws JsonParseException {
|
throws JsonParseException {
|
||||||
WxDataCubeUserSummary summary = new WxDataCubeUserSummary();
|
WxDataCubeUserSummary summary = new WxDataCubeUserSummary();
|
||||||
|
@ -21,6 +21,7 @@ import java.lang.reflect.Type;
|
|||||||
*/
|
*/
|
||||||
public class WxQrCodeTicketAdapter implements JsonDeserializer<WxMpQrCodeTicket> {
|
public class WxQrCodeTicketAdapter implements JsonDeserializer<WxMpQrCodeTicket> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpQrCodeTicket deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpQrCodeTicket deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
WxMpQrCodeTicket ticket = new WxMpQrCodeTicket();
|
WxMpQrCodeTicket ticket = new WxMpQrCodeTicket();
|
||||||
JsonObject ticketJsonObject = json.getAsJsonObject();
|
JsonObject ticketJsonObject = json.getAsJsonObject();
|
||||||
|
@ -16,6 +16,7 @@ import java.lang.reflect.Type;
|
|||||||
|
|
||||||
public class WxUserListGsonAdapter implements JsonDeserializer<WxMpUserList> {
|
public class WxUserListGsonAdapter implements JsonDeserializer<WxMpUserList> {
|
||||||
|
|
||||||
|
@Override
|
||||||
public WxMpUserList deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
public WxMpUserList deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
|
||||||
JsonObject o = json.getAsJsonObject();
|
JsonObject o = json.getAsJsonObject();
|
||||||
WxMpUserList wxMpUserList = new WxMpUserList();
|
WxMpUserList wxMpUserList = new WxMpUserList();
|
||||||
|
Loading…
Reference in New Issue
Block a user