-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathListFileOrFolderResponse.cs
96 lines (65 loc) · 2.87 KB
/
ListFileOrFolderResponse.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
using Egnyte.Api.Common;
namespace Egnyte.Api.Files
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
internal class ListFileOrFolderResponse
{
[JsonProperty(PropertyName = "is_folder")]
public bool IsFolder { get; set; }
[JsonProperty(PropertyName = "path")]
public string Path { get; set; }
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
#region Folder response
[JsonProperty(PropertyName = "count")]
public int Count { get; set; }
[JsonProperty(PropertyName = "offset")]
public int Offset { get; set; }
[JsonProperty(PropertyName = "folder_id")]
public string FolderId { get; set; }
[JsonProperty(PropertyName = "total_count")]
public int TotalCount { get; set; }
[JsonProperty(PropertyName = "restrict_move_delete")]
public bool RestrictMoveDelete { get; set; }
[JsonProperty(PropertyName = "public_links")]
public string PublicLinks { get; set; }
[JsonProperty(PropertyName = "lastModified")]
public long LastModifiedFolder { get; set; }
[JsonProperty(PropertyName = "allowed_file_link_types")]
public string[] AllowedFileLinkTypes { get; set; }
[JsonProperty(PropertyName = "allowed_folder_link_types")]
public string[] AllowedFolderLinkTypes { get; set; }
[JsonProperty(PropertyName = "folders")]
public List<FolderMetadataResponse> Folders { get; set; }
[JsonProperty(PropertyName = "files")]
public List<FileMetadataResponse> Files { get; set; }
#endregion
#region File response
[JsonProperty(PropertyName = "checksum")]
public string Checksum { get; set; }
[JsonProperty(PropertyName = "size")]
public long Size { get; set; }
[JsonProperty(PropertyName = "locked")]
public bool Locked { get; set; }
[JsonProperty(PropertyName = "entry_id")]
public string EntryId { get; set; }
[JsonProperty(PropertyName = "group_id")]
public string GroupId { get; set; }
[JsonProperty(PropertyName = "last_modified")]
public DateTime LastModifiedFile { get; set; }
[JsonProperty(PropertyName = "uploaded")]
[JsonConverter(typeof(UnixTimeConverter))]
public DateTime Uploaded { get; set; }
[JsonProperty(PropertyName = "uploaded_by")]
public string UploadedBy { get; set; }
[JsonProperty(PropertyName = "num_versions")]
public int NumberOfVersions { get; set; }
[JsonProperty(PropertyName = "versions")]
public List<FileVersionMetadataResponse> Versions { get; set; }
[JsonProperty(PropertyName = "custom_metadata")]
public FileOrFolderCustomMetadataResponse CustomMetadata { get; set; }
#endregion
}
}