Class FileItem
Response type for a file stored in the Cloud Save service.
Inherited Members
Namespace: Unity.Services.Apis.Admin.CloudSave
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "FileItem")]
[Preserve]
public class FileItem
Constructors
FileItem(string, string, ModifiedMetadata, ModifiedMetadata, string, long)
Initializes a new instance of the File
Declaration
[Preserve]
public FileItem(string key = null, string writeLock = null, ModifiedMetadata modified = null, ModifiedMetadata created = null, string contentType = null, long size = 0)
Parameters
Type | Name | Description |
---|---|---|
string | key | Item key (required). |
string | writeLock | Enforces conflict checking when updating an existing data item. This field should be omitted when creating a new data item. When updating an existing item, omitting this field ignores write conflicts. When present, an error response will be returned if the writeLock in the request does not match the stored writeLock. (required). |
Modified |
modified | modified (required). |
Modified |
created | created (required). |
string | contentType | The MIME type of the stored file (required). |
long | size | The size of the stored file in bytes (required). |
Properties
ContentType
The MIME type of the stored file
Declaration
[DataMember(Name = "contentType", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string ContentType { get; set; }
Property Value
Type | Description |
---|---|
string | The MIME type of the stored file |
Created
Gets or Sets Created
Declaration
[DataMember(Name = "created", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Created { get; set; }
Property Value
Type | Description |
---|---|
Modified |
Key
Item key
Declaration
[DataMember(Name = "key", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Key { get; set; }
Property Value
Type | Description |
---|---|
string | Item key |
Modified
Gets or Sets Modified
Declaration
[DataMember(Name = "modified", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Modified { get; set; }
Property Value
Type | Description |
---|---|
Modified |
Size
The size of the stored file in bytes
Declaration
[DataMember(Name = "size", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public long Size { get; set; }
Property Value
Type | Description |
---|---|
long | The size of the stored file in bytes |
WriteLock
Enforces conflict checking when updating an existing data item. This field should be omitted when creating a new data item. When updating an existing item, omitting this field ignores write conflicts. When present, an error response will be returned if the writeLock in the request does not match the stored writeLock.
Declaration
[DataMember(Name = "writeLock", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string WriteLock { get; set; }
Property Value
Type | Description |
---|---|
string | Enforces conflict checking when updating an existing data item. This field should be omitted when creating a new data item. When updating an existing item, omitting this field ignores write conflicts. When present, an error response will be returned if the writeLock in the request does not match the stored writeLock. |