Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/Daqifi.Core/Communication/Messages/TestMessage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
namespace Daqifi.Core.Communication.Messages;

/// <summary>
/// Represents a message containing incoming data from the DAQiFi device,
/// formatted as a string.
/// Implements IInboundMessage.
/// </summary>
public class TextMessage : IInboundMessage<string>
{
/// <summary>
/// Gets the data associated with the message, which is a string
/// received from the device.
/// </summary>
public string Data { get; }

/// <summary>
/// Initializes a new instance of the <see cref="TextMessage"/> class
/// to wrap incoming device data.
/// </summary>
/// <param name="message">The string received from the device.</param>
public TextMessage(string message)
{
Data = message;
}
}