-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearchTerm.cs
More file actions
52 lines (49 loc) · 1.75 KB
/
Copy pathSearchTerm.cs
File metadata and controls
52 lines (49 loc) · 1.75 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
using System;
namespace CLReader
{
public class SearchTerm
{
public bool Starred { get; set; }
public long MinPrice { get; set; }
public long MaxPrice { get; set; }
public bool IgnoreZeroPrice { get; set; }
public long MinYear { get; set; }
public long MaxYear { get; set; }
public string CLSearch { get; set; }
public string SambaSearch { get; set; }
public string EbaySearch { get; set; }
public string RVTraderSearch { get; set; }
public string RTVSearch { get; set; }
public string SportsMobileSearch { get; set; }
public string ExcludeKeywords { get; set; }
public string ExcludeChars { get; set; }
public string USCities { get; set; }
public string CACities { get; set; }
public SearchTerm()
{
MinPrice=-1; //-1 means fill in with default
MaxPrice=-1;
MinYear=-1;
MaxYear=-1;
}
public void SetDefaults(SearchTerm defaultSearchTerm)
{
if(MinPrice<0)
MinPrice=defaultSearchTerm.MinPrice;
if(MaxPrice<0)
MaxPrice=defaultSearchTerm.MaxPrice;
if(MinYear<0)
MinYear=defaultSearchTerm.MinYear;
if(MaxYear<0)
MaxYear=defaultSearchTerm.MaxYear;
if(ExcludeKeywords == null)
ExcludeKeywords=defaultSearchTerm.ExcludeKeywords;
if(ExcludeChars == null)
ExcludeChars=defaultSearchTerm.ExcludeChars;
if(USCities == null)
USCities=defaultSearchTerm.USCities;
if(CACities == null)
CACities=defaultSearchTerm.CACities;
}
}
}