aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/DTO/MachineDTO.cs
blob: c6758aeff0d6e6388a42ba7912dbf90617adb542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.BL.DTO
{
    public class MachineDTO : MachineDTOBase
    {
        public ConfigurationDTO Configuration { get; set; }

        //public List<CatDTO> Cats { get; set; }

        public List<SpoolDTO> Spools { get; set; }

        public MachineDTO()
        {
            //Cats = new List<CatDTO>();
            Spools = new List<SpoolDTO>();
        }

        //protected override bool OnShouldActionLogIgnore(string propName)
        //{
        //    return propName == nameof(MachineDTO.Cats);
        //}

        protected override string OnGetActionLogName()
        {
            return $"Machine '{SerialNumber}'";
        }
    }
}