aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.FileSystem/Network/FolderUploadResponse.cs
blob: dc661dc953e50c9f96e800930ba11d9e3472ec48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.FileSystem.Network
{
    public class FolderUploadResponse
    {
        public String OperationId { get; set; }
    }
}
//------------------------------------------------------------------------------
// <auto-generated>
// 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!
// </auto-generated>
//------------------------------------------------------------------------------

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;

namespace Tango.BL.Entities
{

    /// <summary>
    /// 
    /// </summary>

    [Table("JOB_RUNS")]
    public partial class JobRun : ObservableEntity<JobRun>
    {

        public event EventHandler<DateTime> StartDateChanged;

        public event EventHandler<DateTime> EndDateChanged;

        public event EventHandler<Int32> StatusChanged;

        public event EventHandler<Double> EndPositionChanged;

        public event EventHandler<String> FailedMessageChanged;

        public event EventHandler<Job> JobChanged;

        protected String _jobguid;

        /// <summary>
        /// Gets or sets the jobrun job guid.
        /// </summary>

        [Column("JOB_GUID")]
        [ForeignKey("Job")]

        public  String JobGuid
        {
            get 
            {
                return _jobguid; 
            }

            set 
            {
                if (_jobguid != value)
                {
                    _jobguid = value;
                    RaisePropertyChanged(nameof(JobGuid)); 
                }
            }
        }

        protected DateTime _startdate;

        /// <summary>
        /// Gets or sets the jobrun start date.
        /// </summary>

        [Column("START_DATE")]

        public  DateTime StartDate
        {
            get 
            {
                return _startdate; 
            }

            set 
            {
                if (_startdate != value)
                {
                    _startdate = value;

                    StartDateChanged?.Invoke(this, value);

                    RaisePropertyChanged(nameof(StartDate)); 
                }
            }
        }

        protected DateTime _enddate;

        /// <summary>
        /// Gets or sets the jobrun end date.
        /// </summary>

        [Column("END_DATE")]

        public  DateTime EndDate
        {
            get 
            {
                return _enddate; 
            }

            set 
            {
                if (_enddate != value)
                {
                    _enddate = value;

                    EndDateChanged?.Invoke(this, value);

                    RaisePropertyChanged(nameof(EndDate)); 
                }
            }
        }

        protected Int32 _status;

        /// <summary>
        /// 0 = COMPLETED
        /// 1 = ABORTED
        /// 2 = FAILED
        /// </summary>

        [Column("STATUS")]

        public  Int32 Status
        {
            get 
            {
                return _status; 
            }

            set 
            {
                if (_status != value)
                {
                    _status = value;

                    StatusChanged?.Invoke(this, value);

                    RaisePropertyChanged(nameof(Status)); 
                }
            }
        }

        protected Double _endposition;

        /// <summary>
        /// Gets or sets the jobrun end position.
        /// </summary>

        [Column("END_POSITION")]

        public  Double EndPosition
        {
            get 
            {
                return _endposition; 
            }

            set 
            {
                if (_endposition != value)
                {
                    _endposition = value;

                    EndPositionChanged?.Invoke(this, value);

                    RaisePropertyChanged(nameof(EndPosition)); 
                }
            }
        }

        protected String _failedmessage;

        /// <summary>
        /// Gets or sets the jobrun failed message.
        /// </summary>

        [Column("FAILED_MESSAGE")]

        public  String FailedMessage
        {
            get 
            {
                return _failedmessage; 
            }

            set 
            {
                if (_failedmessage != value)
                {
                    _failedmessage = value;

                    FailedMessageChanged?.Invoke(this, value);

                    RaisePropertyChanged(nameof(FailedMessage)); 
                }
            }
        }

        protected Job _job;

        /// <summary>
        /// Gets or sets the jobrun job.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual Job Job
        {
            get 
            {
                return _job; 
            }

            set 
            {
                if (_job != value)
                {
                    _job = value;

                    JobChanged?.Invoke(this, value);

                    RaisePropertyChanged(nameof(Job)); 
                }
            }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="JobRun" /> class.
        /// </summary>
        public JobRun() : base()
        {
        }
    }
}