Class CommunicationTransmission
- Namespace
- Loehnert.Lisrt.Messaging.Communication
- Assembly
- Loehnert.Lisrt.dll
A single transmission.
public class CommunicationTransmission : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseCommunicationTransmission
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
CommunicationTransmission(string, TransmissionDirection, byte[], string)
Initializes a new instance of the CommunicationTransmission class.
public CommunicationTransmission(string moduleName, TransmissionDirection direction, byte[] rawData, string comment)
Parameters
moduleNamestringThe communicating ILisrtModules full name.
directionTransmissionDirectionThe communication direction.
rawDatabyte[]The sent data as byte array.
commentstringComment for the data.
Exceptions
- ArgumentNullException
Thrown when
moduleNameorrawDatais null.
CommunicationTransmission(string, TransmissionDirection, string, string)
Initializes a new instance of the CommunicationTransmission class.
public CommunicationTransmission(string moduleName, TransmissionDirection direction, string data, string comment)
Parameters
moduleNamestringThe communicating ILisrtModules full name.
directionTransmissionDirectionThe communication direction.
datastringThe sent data as string.
commentstringComment for the data.
Exceptions
- ArgumentNullException
Thrown when
moduleNameordatais null.
Properties
Comment
Gets a comment for the transmitted Data.
public string Comment { get; }
Property Value
Data
Gets transmitted data.
public string Data { get; }
Property Value
Remarks
Null, if RawData is set.
Direction
Gets the TransmissionDirection for the transmission.
public TransmissionDirection Direction { get; }
Property Value
ModuleName
Gets the full module name.
public string ModuleName { get; }
Property Value
Remarks
RawData
Gets raw transmitted data.
public byte[] RawData { get; }
Property Value
- byte[]
Remarks
Null, if Data is set.
TimeStamp
Gets the message time stamp.
public virtual DateTime TimeStamp { get; }