-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathBoxFolderRequest.cs
44 lines (39 loc) · 1.84 KB
/
BoxFolderRequest.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
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Box.V2.Models
{
/// <summary>
/// A request class for making folder requests
/// </summary>
public class BoxFolderRequest : BoxItemRequest
{
/// <summary>
/// The email-to-upload address for this folder
/// </summary>
[JsonProperty(PropertyName = "folder_upload_email")]
public BoxEmailRequest FolderUploadEmail { get; set; }
/// <summary>
/// The user who owns the folder. Only used when moving a collaborated folder that you are not the owner of to a folder you are the owner of.
/// Not a substitute for changing folder owners, please reference collaborations see <a href="http://developers.box.com/docs/#collaborations"/>
/// to accomplish folder ownership changes.
/// </summary>
[JsonProperty(PropertyName = "owned_by")]
public BoxRequestEntity OwnedBy { get; private set; }
/// <summary>
/// Whether Box Sync clients will sync this folder. Values of synced or not_synced can be sent, while partially_synced may also be returned.
/// </summary>
[JsonProperty(PropertyName = "sync_state")]
[JsonConverter(typeof(StringEnumConverter))]
public BoxSyncStateType? SyncState { get; set; }
/// <summary>
/// Setting to determine if non-owners can invite others to collaborate on the folder.
/// </summary>
[JsonProperty(PropertyName = "can_non_owners_invite")]
public bool? CanNonOwnersInvite { get; set; }
/// <summary>
/// Setting to determine if collaboration on a folder is restricted to be within an enterprise only.
/// </summary>
[JsonProperty(PropertyName = "is_collaboration_restricted_to_enterprise")]
public bool? CollaborationRestricted { get; set; }
}
}