printer-api/Instructions/FeedInstruction.cs
2022-02-19 14:12:19 +01:00

20 lines
350 B
C#

public class FeedInstruction : BaseInstruction
{
public int lines {get; set; } = 0;
public int dots {get; set; } = 0;
public override List<byte[]> GetInstructions()
{
var commands = new List<byte[]>();
if (lines > 0){
commands.Add(e.FeedLines(lines));
}
if (dots > 0){
commands.Add(e.FeedDots(dots));
}
return commands;
}
}