26 lines
723 B
C#
26 lines
723 B
C#
namespace Sick.Tim781s.Colab.Commands;
|
|
|
|
/// <summary>
|
|
/// Interface for ColaB protocol commands
|
|
/// </summary>
|
|
public interface IColaBCommand
|
|
{
|
|
/// <summary>
|
|
/// Gets the command data (SOPAS command string encoded as bytes)
|
|
/// </summary>
|
|
ReadOnlyMemory<byte> GetCommandData();
|
|
|
|
/// <summary>
|
|
/// Processes the reply from the scanner
|
|
/// </summary>
|
|
/// <param name="replyData">The reply data from the scanner</param>
|
|
/// <returns>True if the command was successful</returns>
|
|
bool ProcessReply(ReadOnlyMemory<byte> replyData);
|
|
|
|
/// <summary>
|
|
/// Indicates if the command was successfully executed
|
|
/// </summary>
|
|
bool WasSuccessful { get; }
|
|
}
|
|
|