Skip to content

Commit

Permalink
added order field
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Marcussen committed Nov 17, 2018
1 parent 9bcb290 commit e959c50
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ProjectType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ namespace TheAppsPajamas.Shared.Types
{
public class ProjectType : Enumeration<ProjectType>
{
public static readonly ProjectType Undefined = new ProjectType(0, "Undefined");
public static readonly ProjectType Shared = new ProjectType(1, "Shared");
public static readonly ProjectType Droid = new ProjectType(2, "Droid");
public static readonly ProjectType Ios = new ProjectType(3, "Ios");
public static readonly ProjectType Undefined = new ProjectType(0, "Undefined", 0);
public static readonly ProjectType Shared = new ProjectType(1, "Shared", 0);
public static readonly ProjectType Droid = new ProjectType(2, "Droid", 1);
public static readonly ProjectType Ios = new ProjectType(3, "Ios", 2);

public ProjectType(int value, string displayName) : base(value, displayName) { }
public ProjectType(int value, string displayName, int order) : base(value, displayName) {
Order = order;
}

public int Order { get; }
}
}

0 comments on commit e959c50

Please sign in to comment.