Private/Manifest.cs

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
namespace Ncrement
{
    public class Manifest
    {
        public Manifest()
        {
            Id = System.Guid.NewGuid().ToString();
            Version = new Version { Major = 0, Minor = 0, Patch = 1, Suffix = "" };
            BranchSuffixMap = new System.Collections.Generic.Dictionary<string, string>
            {
                {"master", "" },
                {"*", "alpha" }
            };
        }
 
        public string Path { get; set; }
 
        public string Id { get; set; }
        public Version Version { get; set; }
 
        public string Name { get; set; }
        public string Summary { get; set; }
        public string Description { get; set; }
 
        public string Author { get; set; }
        public string Company { get; set; }
        public string License { get; set; }
        public string Copyright { get; set; }
 
        public string Website { get; set; }
        public string RespositoryUrl { get; set; }
        public string ReleaseNotes { get; set; }
        public string Icon { get; set; }
 
        public System.Collections.Generic.Dictionary<string, string> BranchSuffixMap { get; set; }
    }
 
    public struct Version
    {
        public int Major { get; set; }
 
        public int Minor { get; set; }
 
        public int Patch { get; set; }
 
        public string Suffix { get; set; }
    }
}