diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-01-03 01:57:58 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-01-03 01:57:58 +0200 |
| commit | 63b2a192ba12f8239668b6818db4ad02db68dbbc (patch) | |
| tree | c9c1de011b38fbff94ce87ac2771667b9a3e773d /Software/Visual_Studio/Tango.PMR/TangoMessage.cs | |
| parent | f917366c405a4308b4b60e30eb1bd0dcf880532c (diff) | |
| download | Tango-63b2a192ba12f8239668b6818db4ad02db68dbbc.tar.gz Tango-63b2a192ba12f8239668b6818db4ad02db68dbbc.zip | |
Implemented abstraction of message encoding/decoding by adding another layer of "Encoders" to Transporters.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/TangoMessage.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.PMR/TangoMessage.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/TangoMessage.cs b/Software/Visual_Studio/Tango.PMR/TangoMessage.cs index 4819ac509..c99fc0dfb 100644 --- a/Software/Visual_Studio/Tango.PMR/TangoMessage.cs +++ b/Software/Visual_Studio/Tango.PMR/TangoMessage.cs @@ -13,10 +13,10 @@ namespace Tango.PMR /// Represents a wrapper class for PRM messages. /// </summary> /// <typeparam name="T"></typeparam> - public class TangoMessage<T> where T : IMessage<T> + public class TangoMessage<T> : ITangoMessage where T : IMessage<T> { /// <summary> - /// Gets the container. + /// Gets the container that will encapsulate the actual PMR message. /// </summary> public MessageContainer Container { get; } @@ -26,7 +26,7 @@ namespace Tango.PMR public T Message { get; set; } /// <summary> - /// Gets or sets the message type. + /// Gets or sets the PMR message type. /// </summary> public MessageType Type { get; set; } @@ -46,7 +46,7 @@ namespace Tango.PMR } /// <summary> - /// Generates a new <see cref="MessageContainer"/> containing the message of type <see cref="T"/> and returns a byte array. + /// Serializes the Tango message to byte array. /// </summary> /// <returns></returns> public byte[] ToBytes() @@ -61,7 +61,7 @@ namespace Tango.PMR } /// <summary> - /// Generates a new <see cref="MessageContainer"/> containing the message of type <see cref="T"/> and returns a byte array. + /// Serializes the Tango message to byte array representing a serialized JSON object of this Tango message. /// </summary> /// <returns></returns> public byte[] ToJsonBytes() |
