File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
src/Daqifi.Core/Communication/Messages Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ namespace Daqifi . Core . Communication . Messages ;
2+
3+ /// <summary>
4+ /// Represents a message containing incoming data from the DAQiFi device,
5+ /// formatted as a string.
6+ /// Implements IInboundMessage.
7+ /// </summary>
8+ public class TextMessage : IInboundMessage < string >
9+ {
10+ /// <summary>
11+ /// Gets the data associated with the message, which is a string
12+ /// received from the device.
13+ /// </summary>
14+ public string Data { get ; }
15+
16+ /// <summary>
17+ /// Initializes a new instance of the <see cref="TextMessage"/> class
18+ /// to wrap incoming device data.
19+ /// </summary>
20+ /// <param name="message">The string received from the device.</param>
21+ public TextMessage ( string message )
22+ {
23+ Data = message ;
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments