From 5db2f3ddeb7f4b1bf36c8abf8963d195a5b86f1c Mon Sep 17 00:00:00 2001 From: schors Date: Tue, 8 Mar 2016 22:17:07 +0300 Subject: [PATCH 1/6] added toString() method for all serializable classes --- .../api/methods/AnswerInlineQuery.java | 11 +++++++ .../api/methods/ForwardMessage.java | 9 ++++++ .../telegrambots/api/methods/GetFile.java | 7 ++++ .../telegrambots/api/methods/GetMe.java | 2 ++ .../telegrambots/api/methods/GetUpdates.java | 9 ++++++ .../api/methods/GetUserProfilePhotos.java | 9 ++++++ .../telegrambots/api/methods/SendAudio.java | 14 ++++++++ .../api/methods/SendChatAction.java | 8 +++++ .../api/methods/SendDocument.java | 12 +++++++ .../api/methods/SendLocation.java | 11 +++++++ .../telegrambots/api/methods/SendMessage.java | 12 +++++++ .../telegrambots/api/methods/SendPhoto.java | 13 ++++++++ .../telegrambots/api/methods/SendSticker.java | 12 +++++++ .../telegrambots/api/methods/SendVideo.java | 14 ++++++++ .../telegrambots/api/methods/SendVoice.java | 11 +++++++ .../telegrambots/api/methods/SetWebhook.java | 8 +++++ .../telegrambots/api/objects/Audio.java | 12 +++++++ .../telegrambots/api/objects/Chat.java | 12 +++++++ .../api/objects/ChosenInlineQuery.java | 9 ++++++ .../telegrambots/api/objects/Contact.java | 10 ++++++ .../telegrambots/api/objects/Document.java | 11 +++++++ .../telegrambots/api/objects/File.java | 9 ++++++ .../api/objects/ForceReplyKeyboard.java | 8 +++++ .../telegrambots/api/objects/InlineQuery.java | 11 +++++++ .../api/objects/InlineQueryResultArticle.java | 18 +++++++++++ .../api/objects/InlineQueryResultGif.java | 17 ++++++++++ .../objects/InlineQueryResultMpeg4Gif.java | 17 ++++++++++ .../api/objects/InlineQueryResultPhoto.java | 19 +++++++++++ .../api/objects/InlineQueryResultVideo.java | 19 +++++++++++ .../telegrambots/api/objects/Location.java | 8 +++++ .../telegrambots/api/objects/Message.java | 32 +++++++++++++++++++ .../telegrambots/api/objects/PhotoSize.java | 10 ++++++ .../api/objects/ReplyKeyboardHide.java | 8 +++++ .../api/objects/ReplyKeyboardMarkup.java | 10 ++++++ .../telegrambots/api/objects/Sticker.java | 11 +++++++ .../telegrambots/api/objects/Update.java | 10 ++++++ .../telegrambots/api/objects/User.java | 10 ++++++ .../api/objects/UserProfilePhotos.java | 8 +++++ .../telegrambots/api/objects/Video.java | 13 ++++++++ .../telegrambots/api/objects/Voice.java | 10 ++++++ 40 files changed, 464 insertions(+) diff --git a/src/main/java/org/telegram/telegrambots/api/methods/AnswerInlineQuery.java b/src/main/java/org/telegram/telegrambots/api/methods/AnswerInlineQuery.java index 37ec2757..8d37d3f5 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/AnswerInlineQuery.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/AnswerInlineQuery.java @@ -135,4 +135,15 @@ public class AnswerInlineQuery extends BotApiMethod { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "AnswerInlineQuery{" + + "inlineQueryId='" + inlineQueryId + '\'' + + ", results=" + results + + ", cacheTime=" + cacheTime + + ", isPersonal=" + isPersonal + + ", nextOffset='" + nextOffset + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/ForwardMessage.java b/src/main/java/org/telegram/telegrambots/api/methods/ForwardMessage.java index 24e8b67f..bda92cf1 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/ForwardMessage.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/ForwardMessage.java @@ -89,4 +89,13 @@ public class ForwardMessage extends BotApiMethod { } return null; } + + @Override + public String toString() { + return "ForwardMessage{" + + "chatId='" + chatId + '\'' + + ", fromChatId=" + fromChatId + + ", messageId=" + messageId + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/GetFile.java b/src/main/java/org/telegram/telegrambots/api/methods/GetFile.java index db81a712..ddcf3acf 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/GetFile.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/GetFile.java @@ -71,4 +71,11 @@ public class GetFile extends BotApiMethod { } return null; } + + @Override + public String toString() { + return "GetFile{" + + "fileId='" + fileId + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/GetMe.java b/src/main/java/org/telegram/telegrambots/api/methods/GetMe.java index 46ec62bd..a9f025b1 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/GetMe.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/GetMe.java @@ -47,4 +47,6 @@ public class GetMe extends BotApiMethod { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/GetUpdates.java b/src/main/java/org/telegram/telegrambots/api/methods/GetUpdates.java index 80908460..69def6b0 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/GetUpdates.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/GetUpdates.java @@ -74,4 +74,13 @@ public class GetUpdates implements IToJson { } return jsonObject; } + + @Override + public String toString() { + return "GetUpdates{" + + "offset=" + offset + + ", limit=" + limit + + ", timeout=" + timeout + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/GetUserProfilePhotos.java b/src/main/java/org/telegram/telegrambots/api/methods/GetUserProfilePhotos.java index d29828ee..45490c74 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/GetUserProfilePhotos.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/GetUserProfilePhotos.java @@ -99,4 +99,13 @@ public class GetUserProfilePhotos extends BotApiMethod { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "GetUserProfilePhotos{" + + "userId=" + userId + + ", offset=" + offset + + ", limit=" + limit + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendAudio.java b/src/main/java/org/telegram/telegrambots/api/methods/SendAudio.java index 93eb237e..22038823 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendAudio.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendAudio.java @@ -101,4 +101,18 @@ public class SendAudio { public String getAudioName() { return audioName; } + + @Override + public String toString() { + return "SendAudio{" + + "chatId='" + chatId + '\'' + + ", audio='" + audio + '\'' + + ", replayToMessageId=" + replayToMessageId + + ", replayMarkup=" + replayMarkup + + ", performer='" + performer + '\'' + + ", title='" + title + '\'' + + ", isNewAudio=" + isNewAudio + + ", audioName='" + audioName + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendChatAction.java b/src/main/java/org/telegram/telegrambots/api/methods/SendChatAction.java index 98f63500..ac168d81 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendChatAction.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendChatAction.java @@ -83,4 +83,12 @@ public class SendChatAction extends BotApiMethod{ public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "SendChatAction{" + + "chatId='" + chatId + '\'' + + ", action='" + action + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendDocument.java b/src/main/java/org/telegram/telegrambots/api/methods/SendDocument.java index 32a7a7a8..723185fa 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendDocument.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendDocument.java @@ -73,4 +73,16 @@ public class SendDocument { public void setReplayMarkup(ReplyKeyboard replayMarkup) { this.replayMarkup = replayMarkup; } + + @Override + public String toString() { + return "SendDocument{" + + "chatId='" + chatId + '\'' + + ", document='" + document + '\'' + + ", replayToMessageId=" + replayToMessageId + + ", replayMarkup=" + replayMarkup + + ", isNewDocument=" + isNewDocument + + ", documentName='" + documentName + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendLocation.java b/src/main/java/org/telegram/telegrambots/api/methods/SendLocation.java index d2ecd057..8fba16d8 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendLocation.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendLocation.java @@ -120,4 +120,15 @@ public class SendLocation extends BotApiMethod { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "SendLocation{" + + "chatId='" + chatId + '\'' + + ", latitude=" + latitude + + ", longitude=" + longitude + + ", replayToMessageId=" + replayToMessageId + + ", replayMarkup=" + replayMarkup + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendMessage.java b/src/main/java/org/telegram/telegrambots/api/methods/SendMessage.java index 74261cea..a16cbe71 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendMessage.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendMessage.java @@ -153,4 +153,16 @@ public class SendMessage extends BotApiMethod { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "SendMessage{" + + "chatId='" + chatId + '\'' + + ", text='" + text + '\'' + + ", parseMode='" + parseMode + '\'' + + ", disableWebPagePreview=" + disableWebPagePreview + + ", replayToMessageId=" + replayToMessageId + + ", replayMarkup=" + replayMarkup + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendPhoto.java b/src/main/java/org/telegram/telegrambots/api/methods/SendPhoto.java index 8e2388f4..2983d2d5 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendPhoto.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendPhoto.java @@ -84,4 +84,17 @@ public class SendPhoto { this.isNewPhoto = true; this.photoName = photoName; } + + @Override + public String toString() { + return "SendPhoto{" + + "chatId='" + chatId + '\'' + + ", photo='" + photo + '\'' + + ", caption='" + caption + '\'' + + ", replayToMessageId=" + replayToMessageId + + ", replayMarkup=" + replayMarkup + + ", isNewPhoto=" + isNewPhoto + + ", photoName='" + photoName + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendSticker.java b/src/main/java/org/telegram/telegrambots/api/methods/SendSticker.java index 987eeca1..fe24a616 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendSticker.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendSticker.java @@ -73,4 +73,16 @@ public class SendSticker { public String getStickerName() { return stickerName; } + + @Override + public String toString() { + return "SendSticker{" + + "chatId='" + chatId + '\'' + + ", sticker='" + sticker + '\'' + + ", replayToMessageId=" + replayToMessageId + + ", replayMarkup=" + replayMarkup + + ", isNewSticker=" + isNewSticker + + ", stickerName='" + stickerName + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendVideo.java b/src/main/java/org/telegram/telegrambots/api/methods/SendVideo.java index ed573603..5b629426 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendVideo.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendVideo.java @@ -95,4 +95,18 @@ public class SendVideo { this.isNewVideo = true; this.videoName = videoName; } + + @Override + public String toString() { + return "SendVideo{" + + "chatId='" + chatId + '\'' + + ", video='" + video + '\'' + + ", duration=" + duration + + ", caption='" + caption + '\'' + + ", replayToMessageId=" + replayToMessageId + + ", replayMarkup=" + replayMarkup + + ", isNewVideo=" + isNewVideo + + ", videoName='" + videoName + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SendVoice.java b/src/main/java/org/telegram/telegrambots/api/methods/SendVoice.java index 2dfca578..c8d0aafc 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SendVoice.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SendVoice.java @@ -28,4 +28,15 @@ public class SendVoice { public SendVoice() { super(); } + + @Override + public String toString() { + return "SendVoice{" + + "chatId='" + chatId + '\'' + + ", audio='" + audio + '\'' + + ", replayToMessageId=" + replayToMessageId + + ", replayMarkup=" + replayMarkup + + ", duration=" + duration + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/methods/SetWebhook.java b/src/main/java/org/telegram/telegrambots/api/methods/SetWebhook.java index 5cba2975..46f05549 100644 --- a/src/main/java/org/telegram/telegrambots/api/methods/SetWebhook.java +++ b/src/main/java/org/telegram/telegrambots/api/methods/SetWebhook.java @@ -36,4 +36,12 @@ public class SetWebhook { public void setCertificateFile(String certificateFile) { this.certificateFile = certificateFile; } + + @Override + public String toString() { + return "SetWebhook{" + + "url='" + url + '\'' + + ", certificateFile='" + certificateFile + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Audio.java b/src/main/java/org/telegram/telegrambots/api/objects/Audio.java index a21adaed..bdafd217 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Audio.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Audio.java @@ -131,4 +131,16 @@ public class Audio implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Audio{" + + "fileId='" + fileId + '\'' + + ", duration=" + duration + + ", mimeType='" + mimeType + '\'' + + ", fileSize=" + fileSize + + ", title='" + title + '\'' + + ", performer='" + performer + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Chat.java b/src/main/java/org/telegram/telegrambots/api/objects/Chat.java index dbf68921..6776b0b2 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Chat.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Chat.java @@ -126,4 +126,16 @@ public class Chat implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Chat{" + + "id=" + id + + ", type='" + type + '\'' + + ", title='" + title + '\'' + + ", firstName='" + firstName + '\'' + + ", lastName='" + lastName + '\'' + + ", userName='" + userName + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/ChosenInlineQuery.java b/src/main/java/org/telegram/telegrambots/api/objects/ChosenInlineQuery.java index aecca51a..8ea998e9 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/ChosenInlineQuery.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/ChosenInlineQuery.java @@ -63,4 +63,13 @@ public class ChosenInlineQuery implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "ChosenInlineQuery{" + + "resultId='" + resultId + '\'' + + ", from=" + from + + ", query='" + query + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Contact.java b/src/main/java/org/telegram/telegrambots/api/objects/Contact.java index 7fc381a6..1636be34 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Contact.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Contact.java @@ -65,4 +65,14 @@ public class Contact implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Contact{" + + "phoneNumber='" + phoneNumber + '\'' + + ", firstName='" + firstName + '\'' + + ", lastName='" + lastName + '\'' + + ", userID=" + userID + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Document.java b/src/main/java/org/telegram/telegrambots/api/objects/Document.java index b562fd4d..78a21b33 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Document.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Document.java @@ -116,4 +116,15 @@ public class Document implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Document{" + + "fileId='" + fileId + '\'' + + ", thumb=" + thumb + + ", fileName='" + fileName + '\'' + + ", mimeType='" + mimeType + '\'' + + ", fileSize=" + fileSize + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/File.java b/src/main/java/org/telegram/telegrambots/api/objects/File.java index 367f71f4..9176b143 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/File.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/File.java @@ -83,4 +83,13 @@ public class File implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "File{" + + "fileId='" + fileId + '\'' + + ", fileSize=" + fileSize + + ", filePath='" + filePath + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/ForceReplyKeyboard.java b/src/main/java/org/telegram/telegrambots/api/objects/ForceReplyKeyboard.java index ced0d9c5..18149d9a 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/ForceReplyKeyboard.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/ForceReplyKeyboard.java @@ -91,4 +91,12 @@ public class ForceReplyKeyboard implements ReplyKeyboard { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "ForceReplyKeyboard{" + + "forceReply=" + forceReply + + ", selective=" + selective + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/InlineQuery.java b/src/main/java/org/telegram/telegrambots/api/objects/InlineQuery.java index b0d44a69..afd5a693 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/InlineQuery.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/InlineQuery.java @@ -73,4 +73,15 @@ public class InlineQuery implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "InlineQuery{" + + "id='" + id + '\'' + + ", from=" + from + + ", query='" + query + '\'' + + ", offset='" + offset + '\'' + + '}'; + } } + diff --git a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultArticle.java b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultArticle.java index e3ec0503..efdd61bf 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultArticle.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultArticle.java @@ -238,4 +238,22 @@ public class InlineQueryResultArticle implements InlineQueryResult { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "InlineQueryResultArticle{" + + "type='" + type + '\'' + + ", id='" + id + '\'' + + ", title='" + title + '\'' + + ", messageText='" + messageText + '\'' + + ", parseMode='" + parseMode + '\'' + + ", disableWebPagePreview=" + disableWebPagePreview + + ", url='" + url + '\'' + + ", hideUrl=" + hideUrl + + ", description='" + description + '\'' + + ", thumbUrl='" + thumbUrl + '\'' + + ", thumbWidth=" + thumbWidth + + ", thumbHeight=" + thumbHeight + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultGif.java b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultGif.java index 168ae778..3e8b7849 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultGif.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultGif.java @@ -222,4 +222,21 @@ public class InlineQueryResultGif implements InlineQueryResult { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "InlineQueryResultGif{" + + "type='" + type + '\'' + + ", id='" + id + '\'' + + ", gifUrl='" + gifUrl + '\'' + + ", gifWidth=" + gifWidth + + ", gifHeight=" + gifHeight + + ", thumbUrl='" + thumbUrl + '\'' + + ", title='" + title + '\'' + + ", caption='" + caption + '\'' + + ", messageText='" + messageText + '\'' + + ", parseMode='" + parseMode + '\'' + + ", disableWebPagePreview=" + disableWebPagePreview + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultMpeg4Gif.java b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultMpeg4Gif.java index f7fd2f36..5edd936d 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultMpeg4Gif.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultMpeg4Gif.java @@ -223,4 +223,21 @@ public class InlineQueryResultMpeg4Gif implements InlineQueryResult { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "InlineQueryResultMpeg4Gif{" + + "type='" + type + '\'' + + ", id='" + id + '\'' + + ", mpeg4Url='" + mpeg4Url + '\'' + + ", mpeg4Width=" + mpeg4Width + + ", mpeg4Height=" + mpeg4Height + + ", thumbUrl='" + thumbUrl + '\'' + + ", title='" + title + '\'' + + ", caption='" + caption + '\'' + + ", messageText='" + messageText + '\'' + + ", parseMode='" + parseMode + '\'' + + ", disableWebPagePreview=" + disableWebPagePreview + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultPhoto.java b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultPhoto.java index 835dfd7c..4c9b7418 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultPhoto.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultPhoto.java @@ -258,4 +258,23 @@ public class InlineQueryResultPhoto implements InlineQueryResult { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "InlineQueryResultPhoto{" + + "type='" + type + '\'' + + ", id='" + id + '\'' + + ", photoUrl='" + photoUrl + '\'' + + ", mimeType='" + mimeType + '\'' + + ", photoWidth=" + photoWidth + + ", photoHeight=" + photoHeight + + ", thumbUrl='" + thumbUrl + '\'' + + ", title='" + title + '\'' + + ", description='" + description + '\'' + + ", caption='" + caption + '\'' + + ", messageText='" + messageText + '\'' + + ", parseMode='" + parseMode + '\'' + + ", disableWebPagePreview=" + disableWebPagePreview + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultVideo.java b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultVideo.java index 28cc7461..7da6f79c 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultVideo.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/InlineQueryResultVideo.java @@ -254,4 +254,23 @@ public class InlineQueryResultVideo implements InlineQueryResult { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "InlineQueryResultVideo{" + + "type='" + type + '\'' + + ", id='" + id + '\'' + + ", mimeType='" + mimeType + '\'' + + ", videoUrl='" + videoUrl + '\'' + + ", videoWidth=" + videoWidth + + ", videoHeight=" + videoHeight + + ", videoDuration=" + videoDuration + + ", thumbUrl='" + thumbUrl + '\'' + + ", title='" + title + '\'' + + ", description='" + description + '\'' + + ", messageText='" + messageText + '\'' + + ", parseMode='" + parseMode + '\'' + + ", disableWebPagePreview=" + disableWebPagePreview + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Location.java b/src/main/java/org/telegram/telegrambots/api/objects/Location.java index 14d1b3b1..c59f963d 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Location.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Location.java @@ -63,4 +63,12 @@ public class Location implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Location{" + + "longitude=" + longitude + + ", latitude=" + latitude + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Message.java b/src/main/java/org/telegram/telegrambots/api/objects/Message.java index 8fa6f5d8..443bcabf 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Message.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Message.java @@ -525,4 +525,36 @@ public class Message implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Message{" + + "messageId=" + messageId + + ", from=" + from + + ", date=" + date + + ", chat=" + chat + + ", forwardFrom=" + forwardFrom + + ", forwardDate=" + forwardDate + + ", text='" + text + '\'' + + ", audio=" + audio + + ", document=" + document + + ", photo=" + photo + + ", sticker=" + sticker + + ", video=" + video + + ", contact=" + contact + + ", location=" + location + + ", newChatParticipant=" + newChatParticipant + + ", leftChatParticipant=" + leftChatParticipant + + ", newChatTitle='" + newChatTitle + '\'' + + ", newChatPhoto=" + newChatPhoto + + ", deleteChatPhoto=" + deleteChatPhoto + + ", groupchatCreated=" + groupchatCreated + + ", replyToMessage=" + replyToMessage + + ", voice=" + voice + + ", superGroupCreated=" + superGroupCreated + + ", channelChatCreated=" + channelChatCreated + + ", migrateToChatId=" + migrateToChatId + + ", migrateFromChatId=" + migrateFromChatId + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/PhotoSize.java b/src/main/java/org/telegram/telegrambots/api/objects/PhotoSize.java index b7869434..5f2be519 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/PhotoSize.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/PhotoSize.java @@ -93,4 +93,14 @@ public class PhotoSize implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "PhotoSize{" + + "fileId='" + fileId + '\'' + + ", width=" + width + + ", height=" + height + + ", fileSize=" + fileSize + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/ReplyKeyboardHide.java b/src/main/java/org/telegram/telegrambots/api/objects/ReplyKeyboardHide.java index dd7b81c0..9b370618 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/ReplyKeyboardHide.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/ReplyKeyboardHide.java @@ -85,4 +85,12 @@ public class ReplyKeyboardHide implements ReplyKeyboard { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "ReplyKeyboardHide{" + + "hideKeyboard=" + hideKeyboard + + ", selective=" + selective + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/ReplyKeyboardMarkup.java b/src/main/java/org/telegram/telegrambots/api/objects/ReplyKeyboardMarkup.java index 4277d159..e268566e 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/ReplyKeyboardMarkup.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/ReplyKeyboardMarkup.java @@ -153,4 +153,14 @@ public class ReplyKeyboardMarkup implements ReplyKeyboard { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "ReplyKeyboardMarkup{" + + "keyboard=" + keyboard + + ", resizeKeyboard=" + resizeKeyboard + + ", oneTimeKeyboad=" + oneTimeKeyboad + + ", selective=" + selective + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java b/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java index 0505fc95..2a76a5de 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Sticker.java @@ -70,4 +70,15 @@ public class Sticker implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Sticker{" + + "fileId='" + fileId + '\'' + + ", width=" + width + + ", height=" + height + + ", thumb=" + thumb + + ", fileSize=" + fileSize + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Update.java b/src/main/java/org/telegram/telegrambots/api/objects/Update.java index 3c111d14..a3992945 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Update.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Update.java @@ -101,4 +101,14 @@ public class Update implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Update{" + + "updateId=" + updateId + + ", message=" + message + + ", inlineQuery=" + inlineQuery + + ", chosenInlineQuery=" + chosenInlineQuery + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/User.java b/src/main/java/org/telegram/telegrambots/api/objects/User.java index 6a5a3918..c7920f4d 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/User.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/User.java @@ -81,4 +81,14 @@ public class User implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "User{" + + "id=" + id + + ", firstName='" + firstName + '\'' + + ", lastName='" + lastName + '\'' + + ", userName='" + userName + '\'' + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/UserProfilePhotos.java b/src/main/java/org/telegram/telegrambots/api/objects/UserProfilePhotos.java index 541900aa..5d680abb 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/UserProfilePhotos.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/UserProfilePhotos.java @@ -87,4 +87,12 @@ public class UserProfilePhotos implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "UserProfilePhotos{" + + "totalCount=" + totalCount + + ", photos=" + photos + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Video.java b/src/main/java/org/telegram/telegrambots/api/objects/Video.java index 34816083..0a741909 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Video.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Video.java @@ -139,4 +139,17 @@ public class Video implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Video{" + + "fileId='" + fileId + '\'' + + ", width=" + width + + ", height=" + height + + ", duration=" + duration + + ", thumb=" + thumb + + ", mimeType='" + mimeType + '\'' + + ", fileSize=" + fileSize + + '}'; + } } diff --git a/src/main/java/org/telegram/telegrambots/api/objects/Voice.java b/src/main/java/org/telegram/telegrambots/api/objects/Voice.java index bb5af2ef..4d695356 100644 --- a/src/main/java/org/telegram/telegrambots/api/objects/Voice.java +++ b/src/main/java/org/telegram/telegrambots/api/objects/Voice.java @@ -96,4 +96,14 @@ public class Voice implements IBotApiObject { public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException { serialize(gen, serializers); } + + @Override + public String toString() { + return "Voice{" + + "fileId='" + fileId + '\'' + + ", duration=" + duration + + ", mimeType='" + mimeType + '\'' + + ", fileSize=" + fileSize + + '}'; + } } From 5950bbd94ba928351a95398c92444324e3cda49d Mon Sep 17 00:00:00 2001 From: flicus Date: Fri, 11 Mar 2016 14:27:24 +0300 Subject: [PATCH 2/6] added possibility to work via HTTP proxy --- .../telegrambots/TelegramBotsApi.java | 10 +++++ .../api/TelegramApiConfiguration.java | 32 ++++++++++++++++ .../telegram/telegrambots/bots/AbsSender.java | 38 +++++++++++++++++++ .../updatesreceivers/UpdatesThread.java | 9 +++++ 4 files changed, 89 insertions(+) create mode 100644 src/main/java/org/telegram/telegrambots/api/TelegramApiConfiguration.java diff --git a/src/main/java/org/telegram/telegrambots/TelegramBotsApi.java b/src/main/java/org/telegram/telegrambots/TelegramBotsApi.java index e0aeef53..7d20995d 100644 --- a/src/main/java/org/telegram/telegrambots/TelegramBotsApi.java +++ b/src/main/java/org/telegram/telegrambots/TelegramBotsApi.java @@ -1,6 +1,8 @@ package org.telegram.telegrambots; import org.apache.http.HttpEntity; +import org.apache.http.HttpHost; +import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.conn.ssl.NoopHostnameVerifier; @@ -13,6 +15,7 @@ import org.apache.http.util.EntityUtils; import org.json.JSONException; import org.json.JSONObject; import org.telegram.telegrambots.api.Constants; +import org.telegram.telegrambots.api.TelegramApiConfiguration; import org.telegram.telegrambots.api.methods.SetWebhook; import org.telegram.telegrambots.bots.TelegramLongPollingBot; import org.telegram.telegrambots.bots.TelegramWebhookBot; @@ -137,6 +140,13 @@ public class TelegramBotsApi { String url = Constants.BASEURL + botToken + "/" + SetWebhook.PATH; HttpPost httppost = new HttpPost(url); + if (TelegramApiConfiguration.getInstance().getProxy() != null) { + RequestConfig requestConfig = RequestConfig.custom() + .setProxy(TelegramApiConfiguration.getInstance().getProxy()) + .build(); + httppost.setConfig(requestConfig); + } + MultipartEntityBuilder builder = MultipartEntityBuilder.create(); builder.addTextBody(SetWebhook.URL_FIELD, webHookURL); if (publicCertificatePath != null) { diff --git a/src/main/java/org/telegram/telegrambots/api/TelegramApiConfiguration.java b/src/main/java/org/telegram/telegrambots/api/TelegramApiConfiguration.java new file mode 100644 index 00000000..51ddcd33 --- /dev/null +++ b/src/main/java/org/telegram/telegrambots/api/TelegramApiConfiguration.java @@ -0,0 +1,32 @@ +package org.telegram.telegrambots.api; + +import org.apache.http.HttpHost; + +/** + * Created by Sergey Skoptsov (flicus@gmail.com) on 11.03.2016. + */ + +public class TelegramApiConfiguration { + + private HttpHost proxy = null; + + public static TelegramApiConfiguration getInstance() { + return Singleton.instance; + } + + public HttpHost getProxy() { + return proxy; + } + + public void setProxy(HttpHost proxy) { + this.proxy = proxy; + } + + public void setProxy(String host, int port, String scheme) { + this.proxy = new HttpHost(host, port, scheme); + } + + private static class Singleton { + public static TelegramApiConfiguration instance = new TelegramApiConfiguration(); + } +} diff --git a/src/main/java/org/telegram/telegrambots/bots/AbsSender.java b/src/main/java/org/telegram/telegrambots/bots/AbsSender.java index 0779642c..55a07947 100644 --- a/src/main/java/org/telegram/telegrambots/bots/AbsSender.java +++ b/src/main/java/org/telegram/telegrambots/bots/AbsSender.java @@ -2,6 +2,7 @@ package org.telegram.telegrambots.bots; import org.apache.http.HttpEntity; import org.apache.http.NameValuePair; +import org.apache.http.client.config.RequestConfig; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; @@ -18,6 +19,7 @@ import org.apache.http.util.EntityUtils; import org.json.JSONObject; import org.telegram.telegrambots.TelegramApiException; import org.telegram.telegrambots.api.Constants; +import org.telegram.telegrambots.api.TelegramApiConfiguration; import org.telegram.telegrambots.api.methods.*; import org.telegram.telegrambots.api.objects.File; import org.telegram.telegrambots.api.objects.Message; @@ -185,6 +187,12 @@ public abstract class AbsSender { CloseableHttpClient httpClient = HttpClients.createDefault(); String url = getBaseUrl() + SendDocument.PATH; HttpPost httppost = new HttpPost(url); + if (TelegramApiConfiguration.getInstance().getProxy() != null) { + RequestConfig requestConfig = RequestConfig.custom() + .setProxy(TelegramApiConfiguration.getInstance().getProxy()) + .build(); + httppost.setConfig(requestConfig); + } if (sendDocument.isNewDocument()) { MultipartEntityBuilder builder = MultipartEntityBuilder.create(); @@ -233,6 +241,12 @@ public abstract class AbsSender { CloseableHttpClient httpClient = HttpClients.createDefault(); String url = getBaseUrl() + SendPhoto.PATH; HttpPost httppost = new HttpPost(url); + if (TelegramApiConfiguration.getInstance().getProxy() != null) { + RequestConfig requestConfig = RequestConfig.custom() + .setProxy(TelegramApiConfiguration.getInstance().getProxy()) + .build(); + httppost.setConfig(requestConfig); + } if (sendPhoto.isNewPhoto()) { MultipartEntityBuilder builder = MultipartEntityBuilder.create(); @@ -287,6 +301,12 @@ public abstract class AbsSender { CloseableHttpClient httpClient = HttpClients.createDefault(); String url = getBaseUrl() + SendVideo.PATH; HttpPost httppost = new HttpPost(url); + if (TelegramApiConfiguration.getInstance().getProxy() != null) { + RequestConfig requestConfig = RequestConfig.custom() + .setProxy(TelegramApiConfiguration.getInstance().getProxy()) + .build(); + httppost.setConfig(requestConfig); + } if (sendVideo.isNewVideo()) { MultipartEntityBuilder builder = MultipartEntityBuilder.create(); @@ -348,6 +368,12 @@ public abstract class AbsSender { CloseableHttpClient httpClient = HttpClients.createDefault(); String url = getBaseUrl() + SendSticker.PATH; HttpPost httppost = new HttpPost(url); + if (TelegramApiConfiguration.getInstance().getProxy() != null) { + RequestConfig requestConfig = RequestConfig.custom() + .setProxy(TelegramApiConfiguration.getInstance().getProxy()) + .build(); + httppost.setConfig(requestConfig); + } if (sendSticker.isNewSticker()) { MultipartEntityBuilder builder = MultipartEntityBuilder.create(); @@ -396,6 +422,12 @@ public abstract class AbsSender { CloseableHttpClient httpclient = HttpClientBuilder.create().setSSLHostnameVerifier(new NoopHostnameVerifier()).build(); String url = getBaseUrl() + method.getPath(); HttpPost httppost = new HttpPost(url); + if (TelegramApiConfiguration.getInstance().getProxy() != null) { + RequestConfig requestConfig = RequestConfig.custom() + .setProxy(TelegramApiConfiguration.getInstance().getProxy()) + .build(); + httppost.setConfig(requestConfig); + } httppost.addHeader("charset", "UTF-8"); httppost.setEntity(new StringEntity(method.toJson().toString(), ContentType.APPLICATION_JSON)); CloseableHttpResponse response = httpclient.execute(httppost); @@ -420,6 +452,12 @@ public abstract class AbsSender { CloseableHttpClient httpclient = HttpClientBuilder.create().setSSLHostnameVerifier(new NoopHostnameVerifier()).build(); String url = getBaseUrl() + method.getPath(); HttpPost httppost = new HttpPost(url); + if (TelegramApiConfiguration.getInstance().getProxy() != null) { + RequestConfig requestConfig = RequestConfig.custom() + .setProxy(TelegramApiConfiguration.getInstance().getProxy()) + .build(); + httppost.setConfig(requestConfig); + } httppost.addHeader("charset", "UTF-8"); httppost.setEntity(new StringEntity(method.toJson().toString(), ContentType.APPLICATION_JSON)); CloseableHttpResponse response = httpclient.execute(httppost); diff --git a/src/main/java/org/telegram/telegrambots/updatesreceivers/UpdatesThread.java b/src/main/java/org/telegram/telegrambots/updatesreceivers/UpdatesThread.java index 968a64ff..cd5ef184 100644 --- a/src/main/java/org/telegram/telegrambots/updatesreceivers/UpdatesThread.java +++ b/src/main/java/org/telegram/telegrambots/updatesreceivers/UpdatesThread.java @@ -1,7 +1,9 @@ package org.telegram.telegrambots.updatesreceivers; import org.apache.http.HttpEntity; +import org.apache.http.HttpHost; import org.apache.http.HttpResponse; +import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.HttpPost; import org.apache.http.conn.ssl.NoopHostnameVerifier; import org.apache.http.entity.BufferedHttpEntity; @@ -14,6 +16,7 @@ import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.telegram.telegrambots.api.Constants; +import org.telegram.telegrambots.api.TelegramApiConfiguration; import org.telegram.telegrambots.api.methods.GetUpdates; import org.telegram.telegrambots.api.objects.Update; import org.telegram.telegrambots.bots.ITelegramLongPollingBot; @@ -58,6 +61,12 @@ public class UpdatesThread { CloseableHttpClient httpclient = HttpClientBuilder.create().setSSLHostnameVerifier(new NoopHostnameVerifier()).setConnectionTimeToLive(20, TimeUnit.SECONDS).build(); String url = Constants.BASEURL + token + "/" + GetUpdates.PATH; HttpPost httpPost = new HttpPost(url); + if (TelegramApiConfiguration.getInstance().getProxy() != null) { + RequestConfig requestConfig = RequestConfig.custom() + .setProxy(TelegramApiConfiguration.getInstance().getProxy()) + .build(); + httpPost.setConfig(requestConfig); + } try { httpPost.addHeader("charset", "UTF-8"); httpPost.setEntity(new StringEntity(request.toJson().toString(), ContentType.APPLICATION_JSON)); From dd4522d2fb2323b829572afed2e171e4ae3a51b0 Mon Sep 17 00:00:00 2001 From: flicus Date: Fri, 11 Mar 2016 14:38:52 +0300 Subject: [PATCH 3/6] added possibility to work via HTTP proxy --- .idea/compiler.xml | 8 ++++++++ .idea/misc.xml | 3 +++ TelegramBots.iml | 2 +- pom.xml | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 434b83aa..89d6b111 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -24,9 +24,17 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 3bb9901e..f46d96ae 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -50,6 +50,9 @@