Merge pull request #387 from gekoramy/dev

Fixed Bot API methods
This commit is contained in:
Ruben Bermudez 2018-04-19 20:45:48 +02:00 committed by GitHub
commit 25d09fcb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 4 additions and 8 deletions

View File

@ -97,8 +97,9 @@ public class AnswerCallbackQuery extends BotApiMethod<Boolean> {
return cacheTime; return cacheTime;
} }
public void setCacheTime(Integer cacheTime) { public AnswerCallbackQuery setCacheTime(Integer cacheTime) {
this.cacheTime = cacheTime; this.cacheTime = cacheTime;
return this;
} }
@Override @Override

View File

@ -60,7 +60,6 @@ public class StopMessageLiveLocation extends BotApiMethod<Serializable> {
} }
public StopMessageLiveLocation setChatId(Long chatId) { public StopMessageLiveLocation setChatId(Long chatId) {
Objects.requireNonNull(chatId);
this.chatId = chatId.toString(); this.chatId = chatId.toString();
return this; return this;
} }

View File

@ -86,7 +86,6 @@ public class GetGameHighScores extends BotApiMethod<ArrayList<GameHighScore>> {
} }
public GetGameHighScores setChatId(Long chatId) { public GetGameHighScores setChatId(Long chatId) {
Objects.requireNonNull(chatId);
this.chatId = chatId.toString(); this.chatId = chatId.toString();
return this; return this;
} }

View File

@ -104,7 +104,6 @@ public class SetGameScore extends BotApiMethod<Serializable> {
} }
public SetGameScore setChatId(Long chatId) { public SetGameScore setChatId(Long chatId) {
Objects.requireNonNull(chatId);
this.chatId = chatId.toString(); this.chatId = chatId.toString();
return this; return this;
} }

View File

@ -104,7 +104,7 @@ public class EditMessageLiveLocation extends BotApiMethod<Serializable> {
} }
public EditMessageLiveLocation setLatitude(Float latitude) { public EditMessageLiveLocation setLatitude(Float latitude) {
Objects.requireNonNull(chatId); Objects.requireNonNull(latitude);
this.latitude = latitude; this.latitude = latitude;
return this; return this;
} }
@ -114,7 +114,7 @@ public class EditMessageLiveLocation extends BotApiMethod<Serializable> {
} }
public EditMessageLiveLocation setLongitud(Float longitud) { public EditMessageLiveLocation setLongitud(Float longitud) {
Objects.requireNonNull(chatId); Objects.requireNonNull(longitud);
this.longitud = longitud; this.longitud = longitud;
return this; return this;
} }

View File

@ -63,7 +63,6 @@ public class EditMessageReplyMarkup extends BotApiMethod<Serializable> {
} }
public EditMessageReplyMarkup setChatId(Long chatId) { public EditMessageReplyMarkup setChatId(Long chatId) {
Objects.requireNonNull(chatId);
this.chatId = chatId.toString(); this.chatId = chatId.toString();
return this; return this;
} }

View File

@ -79,7 +79,6 @@ public class EditMessageText extends BotApiMethod<Serializable> {
} }
public EditMessageText setChatId(Long chatId) { public EditMessageText setChatId(Long chatId) {
Objects.requireNonNull(chatId);
this.chatId = chatId.toString(); this.chatId = chatId.toString();
return this; return this;
} }