-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResourceVersionsInfoContainer.cs
More file actions
41 lines (34 loc) · 1.09 KB
/
Copy pathResourceVersionsInfoContainer.cs
File metadata and controls
41 lines (34 loc) · 1.09 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
using System.Collections.Generic;
using System.Linq;
using nyoka_Client;
using Newtonsoft.Json;
using System.IO;
namespace nyoka_Client
{
public class ResourceVersionsInfoContainer
{
public class ResourceVersionDescription
{
public long byteCount;
public ResourceVersionDescription(long byteCount)
{
this.byteCount = byteCount;
}
}
public static ResourceVersionsInfoContainer deserialize(string str)
{
return JsonConvert.DeserializeObject<ResourceVersionsInfoContainer>(str);
}
public Dictionary<string, ResourceVersionDescription> versions;
public string latestVersion;
public ResourceVersionsInfoContainer(Dictionary<string, ResourceVersionDescription> versions, string latestVersion)
{
this.versions = versions;
this.latestVersion = latestVersion;
}
public string serialize()
{
return JsonConvert.SerializeObject(this);
}
}
}