-
Notifications
You must be signed in to change notification settings - Fork 15
/
Asset.cs
73 lines (56 loc) · 2.12 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using System;
namespace ScreenlyManager
{
public class Asset
{
[Newtonsoft.Json.JsonProperty(PropertyName = "asset_id")]
public string AssetId { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "mimetype")]
public string Mimetype { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "name")]
public string Name { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "end_date")]
public DateTime EndDate { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "is_enabled")]
public Int32 IsEnabled { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "is_processing")]
public Int32? IsProcessing { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "skip_asset_check")]
public Int32 SkipAssetCheck { get; set; }
[Newtonsoft.Json.JsonIgnore]
public bool IsEnabledSwitch
{
get
{
return IsEnabled.Equals(1) ? true : false;
}
}
[Newtonsoft.Json.JsonIgnore]
public string LocalToken { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "nocache")]
public Int32 NoCache { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "is_active")]
public Int32 IsActive { get; set; }
private string _Uri;
[Newtonsoft.Json.JsonProperty(PropertyName = "uri")]
public string Uri
{
get { return _Uri; }
set { _Uri = System.Net.WebUtility.UrlEncode(value); }
}
[Newtonsoft.Json.JsonIgnore]
public string ReadableUri
{
get
{
return System.Net.WebUtility.UrlDecode(this.Uri);
}
}
[Newtonsoft.Json.JsonProperty(PropertyName = "duration")]
public string Duration { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "play_order")]
public Int32 PlayOrder { get; set; }
[Newtonsoft.Json.JsonProperty(PropertyName = "start_date")]
public DateTime StartDate { get; set; }
}
}