aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/DTO/ConfigurationDTO.cs
blob: 5e54c70c1a478c1cebab4c556d22d93cdcd1f54d (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
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;

namespace Tango.BL.DTO
{
    public class ConfigurationDTO : ConfigurationDTOBase
    {
        public List<IdsPackDTO> IdsPacks { get; set; }

        public HardwareVersionDTO HardwareVersion { get; set; }

        [ObservableDTOProperty(MapsTo = nameof(Configuration.ApplicationDisplayPanelVersion) + "." + nameof(Configuration.ApplicationDisplayPanelVersion.Name))]
        public String ApplicationDisplayPanelVersionName { get; set; }

        [ObservableDTOProperty(MapsTo = nameof(Configuration.ApplicationFirmwareVersion) + "." + nameof(Configuration.ApplicationFirmwareVersion.Name))]
        public String ApplicationFirmwareVersionName { get; set; }

        [ObservableDTOProperty(MapsTo = nameof(Configuration.ApplicationOsVersion) + "." + nameof(Configuration.ApplicationOsVersion.Name))]
        public String ApplicationOsVersionName { get; set; }

        [ObservableDTOProperty(MapsTo = nameof(Configuration.EmbeddedFirmwareVersion) + "." + nameof(Configuration.EmbeddedFirmwareVersion.Name))]
        public String EmbeddedFirmwareVersionName { get; set; }

        [ObservableDTOProperty(MapsTo = nameof(Configuration.HardwareVersion) + "." + nameof(Configuration.HardwareVersion.Name))]
        public String HardwareVersionName { get; set; }

        public ConfigurationDTO()
        {
            IdsPacks = new List<IdsPackDTO>();
        }

        protected override string OnGetActionLogName()
        {
            return "Configuration";
        }
    }
}