This commit is contained in:
Rubenlagus 2016-04-17 17:35:48 +02:00
parent 08efa94fcd
commit 1ba0502c4c
11 changed files with 0 additions and 365 deletions

View File

@ -63,56 +63,26 @@ public class Audio implements IBotApiObject {
return fileId;
}
public Audio setFileId(String fileId) {
this.fileId = fileId;
return this;
}
public Integer getDuration() {
return duration;
}
public Audio setDuration(Integer duration) {
this.duration = duration;
return this;
}
public String getMimeType() {
return mimeType;
}
public Audio setMimeType(String mimeType) {
this.mimeType = mimeType;
return this;
}
public Integer getFileSize() {
return fileSize;
}
public Audio setFileSize(Integer fileSize) {
this.fileSize = fileSize;
return this;
}
public String getTitle() {
return title;
}
public Audio setTitle(String title) {
this.title = title;
return this;
}
public String getPerformer() {
return performer;
}
public Audio setPerformer(String performer) {
this.performer = performer;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -59,47 +59,22 @@ public class Document implements IBotApiObject {
return fileId;
}
public Document setFileId(String fileId) {
this.fileId = fileId;
return this;
}
public PhotoSize getThumb() {
return thumb;
}
public Document setThumb(PhotoSize thumb) {
this.thumb = thumb;
return this;
}
public String getFileName() {
return fileName;
}
public Document setFileName(String fileName) {
this.fileName = fileName;
return this;
}
public String getMimeType() {
return mimeType;
}
public Document setMimeType(String mimeType) {
this.mimeType = mimeType;
return this;
}
public Integer getFileSize() {
return fileSize;
}
public Document setFileSize(Integer fileSize) {
this.fileSize = fileSize;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -46,29 +46,14 @@ public class File implements IBotApiObject {
return fileId;
}
public File setFileId(String fileId) {
this.fileId = fileId;
return this;
}
public Integer getFileSize() {
return fileSize;
}
public File setFileSize(Integer fileSize) {
this.fileSize = fileSize;
return this;
}
public String getFilePath() {
return filePath;
}
public File setFilePath(String filePath) {
this.filePath = filePath;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -39,20 +39,10 @@ public class Location implements IBotApiObject {
return longitude;
}
public Location setLongitude(Double longitude) {
this.longitude = longitude;
return this;
}
public Double getLatitude() {
return latitude;
}
public Location setLatitude(Double latitude) {
this.latitude = latitude;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -219,263 +219,118 @@ public class Message implements IBotApiObject {
return messageId;
}
public Message setMessageId(Integer messageId) {
this.messageId = messageId;
return this;
}
public User getFrom() {
return from;
}
public Message setFrom(User from) {
this.from = from;
return this;
}
public Integer getDate() {
return date;
}
public Message setDate(Integer date) {
this.date = date;
return this;
}
public Chat getChat() {
return chat;
}
public Message setChat(Chat chat) {
this.chat = chat;
return this;
}
public User getForwardFrom() {
return forwardFrom;
}
public Message setForwardFrom(User forwardFrom) {
this.forwardFrom = forwardFrom;
return this;
}
public Integer getForwardDate() {
return forwardDate;
}
public Message setForwardDate(Integer forwardDate) {
this.forwardDate = forwardDate;
return this;
}
public String getText() {
return text;
}
public Message setText(String text) {
this.text = text;
return this;
}
public List<MessageEntity> getEntities() {
return entities;
}
public Message setEntities(List<MessageEntity> entities) {
this.entities = entities;
return this;
}
public Audio getAudio() {
return audio;
}
public Message setAudio(Audio audio) {
this.audio = audio;
return this;
}
public Document getDocument() {
return document;
}
public Message setDocument(Document document) {
this.document = document;
return this;
}
public List<PhotoSize> getPhoto() {
return photo;
}
public Message setPhoto(List<PhotoSize> photo) {
this.photo = photo;
return this;
}
public Sticker getSticker() {
return sticker;
}
public Message setSticker(Sticker sticker) {
this.sticker = sticker;
return this;
}
public Video getVideo() {
return video;
}
public Message setVideo(Video video) {
this.video = video;
return this;
}
public Contact getContact() {
return contact;
}
public Message setContact(Contact contact) {
this.contact = contact;
return this;
}
public Location getLocation() {
return location;
}
public Message setLocation(Location location) {
this.location = location;
return this;
}
public Venue getVenue() {
return venue;
}
public Message setVenue(Venue venue) {
this.venue = venue;
return this;
}
public Message getPinnedMessage() {
return pinnedMessage;
}
public Message setPinnedMessage(Message pinnedMessage) {
this.pinnedMessage = pinnedMessage;
return this;
}
public User getNewChatMember() {
return newChatMember;
}
public Message setNewChatMember(User newChatMember) {
this.newChatMember = newChatMember;
return this;
}
public User getLeftChatMember() {
return leftChatMember;
}
public Message setLeftChatMember(User leftChatMember) {
this.leftChatMember = leftChatMember;
return this;
}
public String getNewChatTitle() {
return newChatTitle;
}
public Message setNewChatTitle(String newChatTitle) {
this.newChatTitle = newChatTitle;
return this;
}
public List<PhotoSize> getNewChatPhoto() {
return newChatPhoto;
}
public Message setNewChatPhoto(List<PhotoSize> newChatPhoto) {
this.newChatPhoto = newChatPhoto;
return this;
}
public Boolean getDeleteChatPhoto() {
return deleteChatPhoto;
}
public Message setDeleteChatPhoto(Boolean deleteChatPhoto) {
this.deleteChatPhoto = deleteChatPhoto;
return this;
}
public Boolean getGroupchatCreated() {
return groupchatCreated;
}
public Message setGroupchatCreated(Boolean groupchatCreated) {
this.groupchatCreated = groupchatCreated;
return this;
}
public Message getReplyToMessage() {
return replyToMessage;
}
public Message setReplyToMessage(Message replyToMessage) {
this.replyToMessage = replyToMessage;
return this;
}
public Voice getVoice() {
return voice;
}
public Message setVoice(Voice voice) {
this.voice = voice;
return this;
}
public Boolean getSuperGroupCreated() {
return superGroupCreated;
}
public Message setSuperGroupCreated(Boolean superGroupCreated) {
this.superGroupCreated = superGroupCreated;
return this;
}
public Boolean getChannelChatCreated() {
return channelChatCreated;
}
public Message setChannelChatCreated(Boolean channelChatCreated) {
this.channelChatCreated = channelChatCreated;
return this;
}
public Long getMigrateToChatId() {
return migrateToChatId;
}
public Message setMigrateToChatId(Long migrateToChatId) {
this.migrateToChatId = migrateToChatId;
return this;
}
public Long getMigrateFromChatId() {
return migrateFromChatId;
}
public Message setMigrateFromChatId(Long migrateFromChatId) {
this.migrateFromChatId = migrateFromChatId;
return this;
}
public boolean isGroupMessage() {
return chat.isGroupChat();
}

View File

@ -55,47 +55,22 @@ public class PhotoSize implements IBotApiObject {
return fileId;
}
public PhotoSize setFileId(String fileId) {
this.fileId = fileId;
return this;
}
public Integer getWidth() {
return width;
}
public PhotoSize setWidth(Integer width) {
this.width = width;
return this;
}
public Integer getHeight() {
return height;
}
public PhotoSize setHeight(Integer height) {
this.height = height;
return this;
}
public Integer getFileSize() {
return fileSize;
}
public PhotoSize setFileSize(Integer fileSize) {
this.fileSize = fileSize;
return this;
}
public String getFilePath() {
return filePath;
}
public PhotoSize setFilePath(String filePath) {
this.filePath = filePath;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -53,20 +53,10 @@ public class UserProfilePhotos implements IBotApiObject {
return totalCount;
}
public UserProfilePhotos setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
public List<List<PhotoSize>> getPhotos() {
return photos;
}
public UserProfilePhotos setPhotos(List<List<PhotoSize>> photos) {
this.photos = photos;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -64,65 +64,30 @@ public class Video implements IBotApiObject {
return fileId;
}
public Video setFileId(String fileId) {
this.fileId = fileId;
return this;
}
public Integer getWidth() {
return width;
}
public Video setWidth(Integer width) {
this.width = width;
return this;
}
public Integer getHeight() {
return height;
}
public Video setHeight(Integer height) {
this.height = height;
return this;
}
public Integer getDuration() {
return duration;
}
public Video setDuration(Integer duration) {
this.duration = duration;
return this;
}
public PhotoSize getThumb() {
return thumb;
}
public Video setThumb(PhotoSize thumb) {
this.thumb = thumb;
return this;
}
public String getMimeType() {
return mimeType;
}
public Video setMimeType(String mimeType) {
this.mimeType = mimeType;
return this;
}
public Integer getFileSize() {
return fileSize;
}
public Video setFileSize(Integer fileSize) {
this.fileSize = fileSize;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -50,38 +50,18 @@ public class Voice implements IBotApiObject {
return fileId;
}
public Voice setFileId(String fileId) {
this.fileId = fileId;
return this;
}
public Integer getDuration() {
return duration;
}
public Voice setDuration(Integer duration) {
this.duration = duration;
return this;
}
public String getMimeType() {
return mimeType;
}
public Voice setMimeType(String mimeType) {
this.mimeType = mimeType;
return this;
}
public Integer getFileSize() {
return fileSize;
}
public Voice setFileSize(Integer fileSize) {
this.fileSize = fileSize;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -64,47 +64,22 @@ public class ChosenInlineQuery implements IBotApiObject {
return resultId;
}
public ChosenInlineQuery setResultId(String resultId) {
this.resultId = resultId;
return this;
}
public User getFrom() {
return from;
}
public ChosenInlineQuery setFrom(User from) {
this.from = from;
return this;
}
public Location getLocation() {
return location;
}
public ChosenInlineQuery setLocation(Location location) {
this.location = location;
return this;
}
public String getInlineMessageId() {
return inlineMessageId;
}
public ChosenInlineQuery setInlineMessageId(String inlineMessageId) {
this.inlineMessageId = inlineMessageId;
return this;
}
public String getQuery() {
return query;
}
public ChosenInlineQuery setQuery(String query) {
this.query = query;
return this;
}
@Override
public void serialize(JsonGenerator gen, SerializerProvider serializers) throws IOException {
gen.writeStartObject();

View File

@ -69,47 +69,22 @@ public class InlineQuery implements IBotApiObject {
return id;
}
public InlineQuery setId(String id) {
this.id = id;
return this;
}
public User getFrom() {
return from;
}
public InlineQuery setFrom(User from) {
this.from = from;
return this;
}
public Location getLocation() {
return location;
}
public InlineQuery setLocation(Location location) {
this.location = location;
return this;
}
public String getQuery() {
return query;
}
public InlineQuery setQuery(String query) {
this.query = query;
return this;
}
public String getOffset() {
return offset;
}
public InlineQuery setOffset(String offset) {
this.offset = offset;
return this;
}
@Override
public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException {
serialize(gen, serializers);