Weighing: Restructure class structure
This commit is contained in:
22
Elwig/Helpers/Weighing/SchemberEventScale.cs
Normal file
22
Elwig/Helpers/Weighing/SchemberEventScale.cs
Normal file
@ -0,0 +1,22 @@
|
||||
namespace Elwig.Helpers.Weighing {
|
||||
public class SchemberEventScale : Scale, IEventScale {
|
||||
|
||||
public string Manufacturer => "Schember";
|
||||
public int InternalScaleNr => 1;
|
||||
public string Model { get; private set; }
|
||||
public string ScaleId { get; private set; }
|
||||
public bool IsReady { get; private set; }
|
||||
public bool HasFillingClearance { get; private set; }
|
||||
|
||||
public SchemberEventScale(string id, string model, string cnx, string? empty = null, string? filling = null, int? limit = null, string? log = null) :
|
||||
base(cnx, empty, filling, limit, log) {
|
||||
ScaleId = id;
|
||||
Model = model;
|
||||
IsReady = true;
|
||||
HasFillingClearance = false;
|
||||
Stream.WriteTimeout = 250;
|
||||
Stream.ReadTimeout = 6000;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user