forked from jtimperley/ReportSync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReportItem.cs
56 lines (48 loc) · 1.12 KB
/
ReportItem.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
namespace ReportSync
{
using System.Collections.Generic;
using ReportService;
public class ReportItem
{
public ReportItem()
{
Children = new List<ReportItem>();
Subscriptions = new List<SubscriptionItem>();
}
public string Key { get; set; }
public string Name { get; set; }
public string Path { get; set; }
public string ParentPath { get; set; }
public ItemTypeEnum ItemType { get; set; }
public CatalogItem Item { get; set; }
public string ResourceType { get; set; }
public byte[] ResourceContents { get; set; }
public byte[] ReportDefinition { get; set; }
public List<SubscriptionItem> Subscriptions { get; set; }
public DataSource[] DataSources { get; set; }
public bool IsDirectory
{
get
{
return ItemType == ItemTypeEnum.Folder;
}
}
public bool IsResource
{
get
{
return ItemType == ItemTypeEnum.Resource;
}
}
public bool IsReport
{
get
{
return ItemType == ItemTypeEnum.Report
|| ItemType == ItemTypeEnum.LinkedReport;
}
}
public ReportItem Parent { get; set; }
public List<ReportItem> Children { get; private set; }
}
}