Skip to content

Commit 1013ca1

Browse files
committed
deprecate methods starting with 'get' in Chat.java to keep the same methods name style for the library
1 parent 706ebcd commit 1013ca1

File tree

1 file changed

+16
-0
lines changed
  • library/src/main/java/com/pengrad/telegrambot/model

1 file changed

+16
-0
lines changed

library/src/main/java/com/pengrad/telegrambot/model/Chat.java

+16
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,30 @@ public ChatPhoto photo() {
8686
return photo;
8787
}
8888

89+
/**
90+
* @deprecated Use activeUsernames() instead
91+
*/
92+
@Deprecated
8993
public String[] getActiveUsernames() {
9094
return active_usernames;
9195
}
9296

97+
public String[] activeUsernames() {
98+
return active_usernames;
99+
}
100+
101+
/**
102+
* @deprecated Use emojiStatusCustomEmojiId() instead
103+
*/
104+
@Deprecated
93105
public String getEmojiStatusCustomEmojiId() {
94106
return emoji_status_custom_emoji_id;
95107
}
96108

109+
public String emojiStatusCustomEmojiId() {
110+
return emoji_status_custom_emoji_id;
111+
}
112+
97113
public Integer emojiStatusExpirationDate() {
98114
return emoji_status_expiration_date;
99115
}

0 commit comments

Comments
 (0)