//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Tango Observables Generator
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. Do not modify!
//
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;
using Newtonsoft.Json;
using System.Linq;
using Tango.DAL.Remote.DB;
using Tango.Core;
using System.ComponentModel;
using Tango.Core.CustomAttributes;
namespace Tango.BL.Entities
{
[Table("TANGO_UPDATES")]
public abstract class TangoUpdateBase : ObservableEntity
{
public event EventHandler ApplicationVersionChanged;
public event EventHandler FirmwareVersionChanged;
public event EventHandler ApplicationVersionTagChanged;
public event EventHandler StatusChanged;
public event EventHandler FailedReasonChanged;
public event EventHandler FailedLogChanged;
public event EventHandler StartDateChanged;
public event EventHandler> EndDateChanged;
public event EventHandler IsSynchronizedChanged;
protected String _applicationversion;
///
/// Gets or sets the tangoupdatebase application version.
///
[Column("APPLICATION_VERSION")]
public String ApplicationVersion
{
get
{
return _applicationversion;
}
set
{
if (_applicationversion != value)
{
_applicationversion = value;
OnApplicationVersionChanged(value);
}
}
}
protected String _firmwareversion;
///
/// Gets or sets the tangoupdatebase firmware version.
///
[Column("FIRMWARE_VERSION")]
public String FirmwareVersion
{
get
{
return _firmwareversion;
}
set
{
if (_firmwareversion != value)
{
_firmwareversion = value;
OnFirmwareVersionChanged(value);
}
}
}
protected String _applicationversiontag;
///
/// Gets or sets the tangoupdatebase application version tag.
///
[Column("APPLICATION_VERSION_TAG")]
public String ApplicationVersionTag
{
get
{
return _applicationversiontag;
}
set
{
if (_applicationversiontag != value)
{
_applicationversiontag = value;
OnApplicationVersionTagChanged(value);
}
}
}
protected String _machineguid;
///
/// Gets or sets the tangoupdatebase machine guid.
///
[Column("MACHINE_GUID")]
public String MachineGuid
{
get
{
return _machineguid;
}
set
{
if (_machineguid != value)
{
_machineguid = value;
}
}
}
protected Int32 _status;
///
/// Gets or sets the tangoupdatebase status.
///
[Column("STATUS")]
public Int32 Status
{
get
{
return _status;
}
set
{
if (_status != value)
{
_status = value;
OnStatusChanged(value);
}
}
}
protected String _failedreason;
///
/// Gets or sets the tangoupdatebase failed reason.
///
[Column("FAILED_REASON")]
public String FailedReason
{
get
{
return _failedreason;
}
set
{
if (_failedreason != value)
{
_failedreason = value;
OnFailedReasonChanged(value);
}
}
}
protected String _failedlog;
///
/// Gets or sets the tangoupdatebase failed log.
///
[Column("FAILED_LOG")]
public String FailedLog
{
get
{
return _failedlog;
}
set
{
if (_failedlog != value)
{
_failedlog = value;
OnFailedLogChanged(value);
}
}
}
protected DateTime _startdate;
///
/// Gets or sets the tangoupdatebase start date.
///
[Column("START_DATE")]
public DateTime StartDate
{
get
{
return _startdate;
}
set
{
if (_startdate != value)
{
_startdate = value;
OnStartDateChanged(value);
}
}
}
protected Nullable _enddate;
///
/// Gets or sets the tangoupdatebase end date.
///
[Column("END_DATE")]
public Nullable EndDate
{
get
{
return _enddate;
}
set
{
if (_enddate != value)
{
_enddate = value;
OnEndDateChanged(value);
}
}
}
protected Boolean _issynchronized;
///
/// Gets or sets the tangoupdatebase is synchronized.
///
[Column("IS_SYNCHRONIZED")]
public Boolean IsSynchronized
{
get
{
return _issynchronized;
}
set
{
if (_issynchronized != value)
{
_issynchronized = value;
OnIsSynchronizedChanged(value);
}
}
}
///
/// Called when the ApplicationVersion has changed.
///
protected virtual void OnApplicationVersionChanged(String applicationversion)
{
ApplicationVersionChanged?.Invoke(this, applicationversion);
RaisePropertyChanged(nameof(ApplicationVersion));
}
///
/// Called when the FirmwareVersion has changed.
///
protected virtual void OnFirmwareVersionChanged(String firmwareversion)
{
FirmwareVersionChanged?.Invoke(this, firmwareversion);
RaisePropertyChanged(nameof(FirmwareVersion));
}
///
/// Called when the ApplicationVersionTag has changed.
///
protected virtual void OnApplicationVersionTagChanged(String applicationversiontag)
{
ApplicationVersionTagChanged?.Invoke(this, applicationversiontag);
RaisePropertyChanged(nameof(ApplicationVersionTag));
}
///
/// Called when the Status has changed.
///
protected virtual void OnStatusChanged(Int32 status)
{
StatusChanged?.Invoke(this, status);
RaisePropertyChanged(nameof(Status));
}
///
/// Called when the FailedReason has changed.
///
protected virtual void OnFailedReasonChanged(String failedreason)
{
FailedReasonChanged?.Invoke(this, failedreason);
RaisePropertyChanged(nameof(FailedReason));
}
///
/// Called when the FailedLog has changed.
///
protected virtual void OnFailedLogChanged(String failedlog)
{
FailedLogChanged?.Invoke(this, failedlog);
RaisePropertyChanged(nameof(FailedLog));
}
///
/// Called when the StartDate has changed.
///
protected virtual void OnStartDateChanged(DateTime startdate)
{
StartDateChanged?.Invoke(this, startdate);
RaisePropertyChanged(nameof(StartDate));
}
///
/// Called when the EndDate has changed.
///
protected virtual void OnEndDateChanged(Nullable enddate)
{
EndDateChanged?.Invoke(this, enddate);
RaisePropertyChanged(nameof(EndDate));
}
///
/// Called when the IsSynchronized has changed.
///
protected virtual void OnIsSynchronizedChanged(Boolean issynchronized)
{
IsSynchronizedChanged?.Invoke(this, issynchronized);
RaisePropertyChanged(nameof(IsSynchronized));
}
///
/// Initializes a new instance of the class.
///
public TangoUpdateBase() : base()
{
}
}
}