aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Objects/Hacking/Port.cs
blob: 85360a35e37fc1c4faf017a0f214a15bcf7b35d5 (plain) (blame)
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShiftOS.Objects
{
    public class Port
    {
        public string Name { get; set; }
        public string FriendlyName { get; set; }
        public SystemType AttachTo { get; set; }
        public int Value { get; set; }

        public string ID
        {
            get
            {
                return Name.ToLower().Replace(" ", "_");
            }
        }

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

}