-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuestionTracker.cs
44 lines (35 loc) · 1.15 KB
/
QuestionTracker.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tachufind
{
// NOTE - Since the dictionary does not need ZERO like an array would, beginning key is ONE
// This keeps track of the sets which contain one question and one answer (currentQA)
public class QuestionTracker
{
public int currentQueueKey;
public string question { get; set; }
public string answer { get; set; }
private int _questionOrAnswerPosition;
public int questionOrAnswerPosition
{
get { return _questionOrAnswerPosition; }
set { _questionOrAnswerPosition = value; }
}
public void ToggleQuestionOrAnswerPosition()
{
int newValue = (_questionOrAnswerPosition == 0) ? 1 : 0;
questionOrAnswerPosition = newValue;
}
public QuestionTracker(int currentQueueKey)
{
this.currentQueueKey = currentQueueKey;
}
public QuestionTracker()
{
this.currentQueueKey = 0;
}
}
}