-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPageObject.cs
35 lines (32 loc) · 1.38 KB
/
PageObject.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
using Newtonsoft.Json;
namespace HtmlExporterPlugin
{
public class PageObject
{
public string Pagetitle { get; set; }
[JsonIgnore]
public string Pagefilename
{
get =>
Groupfield == Constants.NotGroupedField ?
Templatefoldername + "_" + (Sortfield.ToLower() + "_" + (SortAscending ? Constants.AscendingText : Constants.DescendingText) + ".html") :
Templatefoldername + "_" + Groupfield.ToLower() + "_" + (GroupAscending ? Constants.AscendingText : Constants.DescendingText) + "_" +
Sortfield.ToLower() + "_" + (SortAscending ? Constants.AscendingText : Constants.DescendingText) + ".html";
}
public string Templatefoldername { get; set; }
public string Groupfield { get; set; }
public bool GroupAscending { get; set; }
public string Sortfield { get; set; }
public bool SortAscending { get; set; }
public PageObject(string apagetitle, string atemplatefoldername, string agroupfield,
bool agroupascending, string asortfield, bool aSortAscending)
{
Pagetitle = apagetitle;
Templatefoldername = atemplatefoldername;
Groupfield = agroupfield;
Sortfield = asortfield;
SortAscending = aSortAscending;
GroupAscending = agroupascending;
}
}
}