forked from jetheredge/SquishIt
/
Asset.cs
47 lines (41 loc) · 1.23 KB
/
Asset.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
using System;
namespace SquishIt.Framework.Base
{
internal class Asset
{
internal string LocalPath { get; set; }
internal string RemotePath { get; set; }
internal int Order { get; set; }
internal bool IsEmbeddedResource { get; set; }
internal bool DownloadRemote { get; set; }
internal bool IsRecursive { get; set; }
internal bool IsLocal
{
get
{
return String.IsNullOrEmpty(RemotePath);
}
}
internal bool IsRemote
{
get
{
return !String.IsNullOrEmpty(RemotePath) && !IsEmbeddedResource && !DownloadRemote;
}
}
internal bool IsRemoteDownload {
get { return !String.IsNullOrEmpty(RemotePath) && DownloadRemote; }
}
internal Asset()
{
}
internal Asset(string localPath, string remotePath = null, int order = 0, bool isEmbeddedResource = false, bool isRecursive = true)
{
LocalPath = localPath;
RemotePath = remotePath;
Order = order;
IsEmbeddedResource = isEmbeddedResource;
IsRecursive = isRecursive;
}
}
}