-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathInteractionType.cs
More file actions
76 lines (59 loc) · 2.34 KB
/
InteractionType.cs
File metadata and controls
76 lines (59 loc) · 2.34 KB
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
75
76
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TinCan
{
public sealed class InteractionType
{
private const string choice = "choice";
private const string sequencing = "sequencing";
private const string likert = "likert";
private const string matching = "matching";
private const string performance = "performance";
private const string truefalse = "true-false";
private const string fillin = "fill-in";
private const string numeric = "numeric";
private const string other = "other";
public static readonly InteractionType Choice = new InteractionType("choice");
public static readonly InteractionType Sequencing = new InteractionType("sequencing");
public static readonly InteractionType Likert = new InteractionType("likert");
public static readonly InteractionType Matching = new InteractionType("matching");
public static readonly InteractionType Performance = new InteractionType("performance");
public static readonly InteractionType TrueFalse = new InteractionType("true-false");
public static readonly InteractionType FillIn = new InteractionType("fill-in");
public static readonly InteractionType Numeric = new InteractionType("numeric");
public static readonly InteractionType Other = new InteractionType("other");
private InteractionType(string value)
{
Value = value;
}
public static InteractionType FromValue(string value)
{
switch (value)
{
case choice:
return Choice;
case sequencing:
return Sequencing;
case likert:
return Likert;
case matching:
return Matching;
case performance:
return Performance;
case truefalse:
return TrueFalse;
case fillin:
return FillIn;
case numeric:
return Numeric;
case other:
return Other;
default:
return null;
}
}
public string Value { get; private set; }
}
}