Sanitize inline JSON data objects
Sometime we took a shortcut and inlined data objects instead of creating a new class for them. That needs to be fixed, first of all is code mainainability, and copy-pasta issues. Then, as soon as tdlib changes an interface, we would need to fix it in various places and thats hard to spot sometimes.
Current inlined data objects to be made explicit:
-
getUser -
clearRecentlyFoundChats -
chatActionTyping (needs also further repair of chat actions) -
getTextEntities -
setNetworkType (plus its network types) -
getChatHistory (already in progress in !377 (merged)) -
formattedText -
inputMessageText -
inputFileLocal -
deviceTokenUbuntuPush -
getStickerSet -
getInstalledStickerSets
Edited by Flo Lee