Vitaliy

Results 7 comments of Vitaliy

@alexmao86 how to install it?

Yes, it may be solved with wrapper around for _every_ of these classes. But if they would have implemented common interface with that method, then all of them could be...

Well, yes, actually all these methods have to be in common interface(s) as well ) I'm tring to implement common behavior for all these instances. For example, I want to...

@Chase22 could you plz explain why you don't want to add simple interface?

@Chase22 , Ok, let's go from practice side: ``` if (message.hasVideo()) { EditMessageMedia editObject = new EditMessageMedia().setChatId(chatId).setMessageId(messageId); editObject.setMedia( new InputMediaVideo().setMedia(message.getVideo().getFileId()) ); setButtons(data, editObject); execute(editObject); } else { EditMessageText editObject =...

@Chase22 This makes no practical difference, the code is duplicated anyway. And especially this is obvious for `execute`. And thats how this could look like if use interface: ``` SomeInterfaceForAllTheseEvents...

@sachinboob please, is there any other solution, except changing system display properties?