You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Message has been decoupled from Transport it is possible to reuse both components. To make it possible after sending a message both Message and Transport should be untouched or returned in their original state. Therefore all the building and generation process should be achieved by any of the following way:
Use of subsequent function calls which returns a string at the end with the actual message to be sent
Create an internal Composer object which stores all generated content. (Again STORES, everything else is done by the Transport) This object can be thrown away at the end.
Use Message class as storage and "reset" it at the end. (Use a clone as storage)
Since
Messagehas been decoupled fromTransportit is possible to reuse both components. To make it possible after sending a message bothMessageandTransportshould be untouched or returned in their original state. Therefore all the building and generation process should be achieved by any of the following way:Composerobject which stores all generated content. (Again STORES, everything else is done by theTransport) This object can be thrown away at the end.Messageclass as storage and "reset" it at the end. (Use a clone as storage)