mirror of
https://github.com/DarthAffe/OBD.NET.git
synced 2025-12-12 08:48:30 +00:00
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
namespace OBD.NET.Common.Commands
|
|
{
|
|
public class STCommand
|
|
{
|
|
#region Values
|
|
// ReSharper disable InconsistentNaming
|
|
|
|
//TODO DarthAffe 19.03.2017: Implement all commands
|
|
|
|
internal static readonly STCommand AddPassFilter = new STCommand("STFAP");
|
|
internal static readonly STCommand AddBlockFilter = new STCommand("STFAB");
|
|
internal static readonly STCommand AddFlowControlFilter = new STCommand("STFAFC");
|
|
internal static readonly STCommand ClearPassFilters = new STCommand("STFCP");
|
|
internal static readonly STCommand ClearBlockFilters = new STCommand("STFCB");
|
|
internal static readonly STCommand ClearFlowControlFilters = new STCommand("STFCFC");
|
|
internal static readonly STCommand Monitor = new STCommand("STM");
|
|
internal static readonly STCommand MonitorAll = new STCommand("STMA");
|
|
|
|
// ReSharper restore InconsistentNaming
|
|
#endregion
|
|
|
|
#region Properties & Fields
|
|
|
|
public string Command { get; }
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
protected STCommand(string command)
|
|
{
|
|
this.Command = command;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public override string ToString() => Command;
|
|
|
|
#endregion
|
|
|
|
#region Operators
|
|
|
|
public static implicit operator string(STCommand command) => command.ToString();
|
|
|
|
#endregion
|
|
}
|
|
}
|