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
moduleName
stringThe communicating ILisrtModules full name.
direction
TransmissionDirectionThe communication direction.
rawData
byte[]The sent data as byte array.
comment
stringComment for the data.
Exceptions
- ArgumentNullException
Thrown when
moduleName
orrawData
is 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
moduleName
stringThe communicating ILisrtModules full name.
direction
TransmissionDirectionThe communication direction.
data
stringThe sent data as string.
comment
stringComment for the data.
Exceptions
- ArgumentNullException
Thrown when
moduleName
ordata
is 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; }