Message with information about the sender

Topics: Questions
Jan 9, 2013 at 12:00 PM

Hello again.

I try the messaging. One question: How to send messages with parameters. Do I have to send them in the tag?

Or is there a better way?

Jan 11, 2013 at 6:43 PM

The tag is not a way to send additional information. The tag is to "tag" a message. So, if you have a message with string data, you can register multiple instances via the tags.

The TMessage generic argument is the type that is passed to the listeners. For example, you can put in any class there. Just create your own DTO (Data Transfer Objects) to communicate between sender and receiver.

Jan 11, 2013 at 6:44 PM

For more information, see this documentation:

Jan 14, 2013 at 6:57 AM

Thanks for your answer. Yes in the meantime I found the solution.