using MapoSDK;
namespace IOB_UT_NEXT.Objects
{
///
/// Classe che contiene tutte le NUOVE informazioni da aggiornare sulla form
///
public class newDisplayData
{
#region Public Properties
///
/// Oggetto COUTNER generico (pezzi, portata...)
///
public int counter { get; set; } = -9999;
///
/// Bitmap attuale segnali letti
///
public string currBitmap { get; set; } = "";
///
/// Verifica se contenga valori (NON default/empty)
///
public bool hasData
{
get
{
bool answ = false;
// true se qualcosa NON E' come default
if (!string.IsNullOrWhiteSpace(newInData) || !string.IsNullOrWhiteSpace(newSignalData) || !string.IsNullOrWhiteSpace(newFLogData) || !string.IsNullOrWhiteSpace(newUrlCallData) || !string.IsNullOrWhiteSpace(newLiveLogData) || counter > -9999 || !string.IsNullOrWhiteSpace(currBitmap) || semIn != Semaforo.ND || semOut != Semaforo.ND)
{
answ = true;
}
return answ;
}
}
///
/// Dati tipo FluxLog
///
public string newFLogData { get; set; } = "";
///
/// Dati tipo IN (RAW)
///
public string newInData { get; set; } = "";
///
/// Dati tipo LiveLog
///
public string newLiveLogData { get; set; } = "";
///
/// Dati tipo Signal
///
public string newSignalData { get; set; } = "";
///
/// Dati tipo UrlCall
///
public string newUrlCallData { get; set; } = "";
///
/// Stato semaforo IN verso PLC
///
public Semaforo semIn { get; set; } = Semaforo.ND;
///
/// Stato semaforo OUT verso MES
///
public Semaforo semOut { get; set; } = Semaforo.ND;
#endregion Public Properties
}
}