Why there are two different chat types which are exactly the same?
|
public class Chat implements Serializable { |
|
private final static long serialVersionUID = 0L; |
|
|
|
public enum Type { |
|
@SerializedName("private") Private, group, supergroup, channel |
|
} |
|
public class ChatFullInfo implements Serializable { |
|
private final static long serialVersionUID = 0L; |
|
|
|
public enum Type { |
|
@SerializedName("private") Private, group, supergroup, channel |
|
} |
This makes comparing between chat types with different sources very hard.
Also, ChatFullInfo has all the members defined in Chat. Can we make ChatFullInfo somehow extends Chat, so that a method that receives Chat can also receive a ChatFullInfo without changes.
Why there are two different chat types which are exactly the same?
java-telegram-bot-api/library/src/main/java/com/pengrad/telegrambot/model/Chat.java
Lines 12 to 17 in c607c79
java-telegram-bot-api/library/src/main/java/com/pengrad/telegrambot/model/ChatFullInfo.java
Lines 17 to 22 in c607c79
This makes comparing between chat types with different sources very hard.
Also,
ChatFullInfohas all the members defined inChat. Can we makeChatFullInfosomehowextends Chat, so that a method that receivesChatcan also receive aChatFullInfowithout changes.