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