-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBugStatus.cs
More file actions
32 lines (26 loc) · 813 Bytes
/
BugStatus.cs
File metadata and controls
32 lines (26 loc) · 813 Bytes
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
using System.Collections.Generic;
namespace Solution {
public class BugStatus {
private int id;
public int Id {
get { return id; }
set { id = value; }
}
private string name;
public string Name {
get { return name; }
set { name = value; }
}
public static List<BugStatus> GetStatusesList() {
string[] names = new string[] { "Accepted", "Rejected", "Fixed" };
List<BugStatus> result = new List<BugStatus>(names.Length);
for (int i = 0; i < names.Length; i++) {
BugStatus st = new BugStatus();
st.Name = names[i];
st.id = i;
result.Add(st);
}
return result;
}
}
}