Remove setter for unmodificable fields in replymarkup

This commit is contained in:
Rubenlagus 2016-06-01 00:32:14 +02:00
parent e4b92fd0ad
commit e39e20c7f9
2 changed files with 1 additions and 13 deletions

View File

@ -19,7 +19,6 @@ import java.io.IOException;
* @date 22 of June of 2015 * @date 22 of June of 2015
*/ */
public class ForceReplyKeyboard implements ReplyKeyboard { public class ForceReplyKeyboard implements ReplyKeyboard {
private static final String FORCEREPLY_FIELD = "force_reply"; private static final String FORCEREPLY_FIELD = "force_reply";
private static final String SELECTIVE_FIELD = "selective"; private static final String SELECTIVE_FIELD = "selective";
/** /**
@ -55,11 +54,6 @@ public class ForceReplyKeyboard implements ReplyKeyboard {
return forceReply; return forceReply;
} }
public ForceReplyKeyboard setForceReply(Boolean forceReply) {
this.forceReply = forceReply;
return this;
}
public Boolean getSelective() { public Boolean getSelective() {
return selective; return selective;
} }

View File

@ -19,7 +19,6 @@ import java.io.IOException;
* @date 20 of June of 2015 * @date 20 of June of 2015
*/ */
public class ReplyKeyboardHide implements ReplyKeyboard { public class ReplyKeyboardHide implements ReplyKeyboard {
private static final String HIDEKEYBOARD_FIELD = "hide_keyboard"; private static final String HIDEKEYBOARD_FIELD = "hide_keyboard";
private static final String SELECTIVE_FIELD = "selective"; private static final String SELECTIVE_FIELD = "selective";
@JsonProperty(HIDEKEYBOARD_FIELD) @JsonProperty(HIDEKEYBOARD_FIELD)
@ -34,7 +33,7 @@ public class ReplyKeyboardHide implements ReplyKeyboard {
public ReplyKeyboardHide() { public ReplyKeyboardHide() {
super(); super();
this.selective = true; this.hideKeyboard = true;
} }
public ReplyKeyboardHide(JSONObject jsonObject) { public ReplyKeyboardHide(JSONObject jsonObject) {
@ -51,11 +50,6 @@ public class ReplyKeyboardHide implements ReplyKeyboard {
return hideKeyboard; return hideKeyboard;
} }
public ReplyKeyboardHide setHideKeyboard(Boolean hideKeyboard) {
this.hideKeyboard = hideKeyboard;
return this;
}
public Boolean getSelective() { public Boolean getSelective() {
return selective; return selective;
} }