-
Notifications
You must be signed in to change notification settings - Fork 0
/
CurrentQuery.cs
67 lines (57 loc) · 1.7 KB
/
CurrentQuery.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
using System.Diagnostics;
using System.Collections.Generic;
namespace OxfordV2
{
public enum Modes
{
Word,
Root,
Lammatize,
Senses,
Quotations
}
public class CurrentQuery : IDisposable
{
// Create the object the same time the user looks up a word
public string UserEnteredWord { get; set; }
public string CurrentSenseID { get; set; }
public string Lamma { get; set; }
public string Quote { get; set; }
public List<Definition> Definitions { get; set; }
public List<Quote> Quotes { get; set; }
public List<Sense> Senses { get; set; }
public string EtymologySummary { get; set; }
public string FirstUse { get; set; }
public string SourceLanguage { get; set; }
public Modes QueryMode { get; set; }
public bool HasLookedUpWord { get; set; }
public bool OptionsMenuVerboseMode { get; set;}
public bool? IncludeObsolete { get; set; }
public bool DateRangeSet { get; set; }
public int NumberOfQuotes { get; set; }
public int StartYear { get; set; }
public bool OpenStart { get; set;}
public int EndYear { get; set; }
public bool OpenEnd { get; set;}
public CurrentQuery() {
this.HasLookedUpWord = false;
this.DateRangeSet = false;
this.IncludeObsolete = null;
this.OptionsMenuVerboseMode = true;
this.Definitions = new List<Definition>();
this.Quotes = new List<Quote>();
this.Senses = new List<Sense>();
this.StartYear = 0;
this.OpenStart = false;
this.EndYear = 0;
this.OpenEnd = false;
}
public string Source { get; set; }
public void Dispose ()
{
Trace.WriteLine("Called Dispose");
Trace.WriteLine("Dispose not yet implemented.");
}
}
}