Closed gongaa closed 7 years ago
There is reason why I didn’t make MsgJSON abstract. When the @Autowired
annotation is added, it will call the constructor of that object, but an abstract class cannot be instantiated.
See wiki page for the most updated API for ParserMessageJSON
and FormatterMessageJSON
[x] FormatterMessageJSON.class
[x] ParserMessageJSON.class
They are the objects you will use to communicate with Controller. i.e Controller will send ParserMessageJSON object to your individual module and you will send FormatterMessageJSON object back to Formatter (which is part of the Controller). These two objects both contain a List of MsgJSON object, which is a super class for
FormatterImageMessageJSON
ParserImageMessageJSON
TextMessageJSON When you are constructing FormatterMessageJSON, you can add any type of the three Objects stated above to the List. You can only add at most five MsgJSON objects, because the Formatter will only send the first five to user.