aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Settings/MachineStudioSettings/MachineStudio.cs
blob: 70199d0eff805cd358e144f1f4ae199d4ae78467 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Cryptography;
using Tango.Logging;

namespace Tango.Settings.MachineStudioSettings
{
    /// <summary>
    /// Represents the machine studio settings.
    /// </summary>
    public class MachineStudio
    {
        /// <summary>
        /// Gets or sets the last login email.
        /// </summary>
        public String LastLoginEmail { get; set; }

        /// <summary>
        /// Gets or sets the last login password.
        /// </summary>
        public String LastLoginPassword { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to save the user credentials.
        /// </summary>
        public bool RememberMe { get; set; }

        /// <summary>
        /// Gets or sets the logging categories.
        /// </summary>
        public List<LogCategory> LoggingCategories { get; set; }

        /// <summary>
        /// Gets or sets the synchronization module settings.
        /// </summary>
        public SynchronizationModule SynchronizationModule { get; set; }

        /// <summary>
        /// Gets or sets the stubs module settings.
        /// </summary>
        public StubsModule StubsModule { get; set; }

        /// <summary>
        /// Gets or sets the technician module settings.
        /// </summary>
        public TechnicianModule TechnicianModule { get; set; }

        /// <summary>
        /// Gets or sets the developer module settings.
        /// </summary>
        public DeveloperModule DeveloperModule { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="MachineStudio"/> class.
        /// </summary>
        public MachineStudio()
        {
            LoggingCategories = new List<LogCategory>();

            LoggingCategories.Add(LogCategory.Critical);
            LoggingCategories.Add(LogCategory.Error);
            LoggingCategories.Add(LogCategory.General);
            LoggingCategories.Add(LogCategory.Warning);

            SynchronizationModule = new SynchronizationModule();
            StubsModule = new StubsModule();
            TechnicianModule = new TechnicianModule();
            DeveloperModule = new DeveloperModule();
        }
    }
}