aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/OrganisationToSiteModel.cs
blob: e24c7ba55320ed4cf0cd4ec03264b83e01bcec5e (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
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { co
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.MachineStudio.Statistics.Models
{
    public class MachineModel
    {
        public string Guid { get; set; }

        public string Name { get; set; }

        public string SerialNumber { get; set; }
    };

    public class SiteModel
    {
        public string Guid { get; set; }

        public string Name { get; set; }

        public List<MachineModel> Machines { get; set; }

        public SiteModel()
        {
            Machines = new List<MachineModel>();
        }
    };

    public class OrganisationToSiteModel
    {
        public string Guid { get; set; }

        public string Name { get; set; }

        public List<SiteModel> Sites { get; set; }

        public List<MachineModel> Machines { get; set; }


        public OrganisationToSiteModel()
        {
            Sites = new List<SiteModel>();
            Machines = new List<MachineModel>();
        }

        public override string ToString()
        {
            return Name;
        }
    };
}
pre>