Remove setter for unmodificable fields in replymarkup
This commit is contained in:
parent
e4b92fd0ad
commit
e39e20c7f9
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user