Class FileDetails
Implementation of an interface to access file data structure for an attachment
Implements
Inherited Members
Namespace: Unity.Cloud.Collaboration.Models.Abstractions
Assembly: Unity.Cloud.Collaboration.dll
Syntax
public class FileDetails : IFileDetails
Constructors
FileDetails(long?, string, FileStatus?, string, string)
Initializes a new instance of the FileDetails class.
Declaration
public FileDetails(long? fileSize, string filePath, FileStatus? status, string fileType = null, string contentType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| long? | fileSize | The file size (required). |
| string | filePath | The file size (required). |
| FileStatus? | status | Status of the file (required). |
| string | fileType | The file type. |
| string | contentType | The file content type, MIME type if relevant. |
Properties
ContentType
The file content type, MIME type if relevant.
Declaration
public string ContentType { get; }
Property Value
| Type | Description |
|---|---|
| string |
FilePath
The file path.
Declaration
public string FilePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
FileSize
The file size.
Declaration
public long FileSize { get; }
Property Value
| Type | Description |
|---|---|
| long |
FileType
The file type.
Declaration
public string FileType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Status
Status of the attachment file. Possible values:
- Unknown: Unknown status.
- Draft: The file is in draft.
- Uploaded: The file has been uploaded.
Declaration
public FileStatus Status { get; }
Property Value
| Type | Description |
|---|---|
| FileStatus |