Skip to main content

CreateFileRequest Constructors

An object defining constructors for the CreateFileRequest class.

CreateFileRequest()

Initializes a new instance of the CreateFileRequest class.


CreateFileRequest(name, description, createdBy, createdAt)

Initializes a new instance of the CreateFileRequest class with the specified details.

Parameters:

name (required): Dictionary<string, string>
The name of the object in multiple languages.

description (required): Dictionary<string, string>
The description of the object in multiple languages.

createdBy (optional): long?
The identifier of the user who created the object.

createdAt (optional): DateTimeOffset?
The date and time when the object was created.

Sets the properties Name, Description, CreatedBy, and CreatedAt to the provided values.


CreateFileRequest()

Initializes a new instance of the CreateFileRequest class.

Provides a default constructor for creating instances of the CreateFileRequest class.


CreateFileRequest(secretKey, contentInfo, name, description, documents, fileVersion, createdBy, createdAt)

Initializes a new instance of the CreateFileRequest class with the specified file information and creation metadata.

Parameters:

secretKey (required): string
The encrypted secret key for file security.

contentInfo (required): FileContentInfo
Information about the file content being created.

name (required): Dictionary<string, string>
The localized names for the file.

description (required): Dictionary<string, string>
The localized descriptions for the file.

documents (required): IEnumerable<CreateFileDocumentItem>
The collection of document items to be created.

fileVersion (required): FileVersion
The version information for the file.

createdBy (optional): long?
The ID of the user creating the file.

createdAt (optional): DateTimeOffset?
The date and time when the file was created.

This constructor creates a new CreateFileRequest instance with full creation metadata support. It is marked with JsonConstructor to support JSON deserialization scenarios.


CreateFileRequest(name, description)

Initializes a new instance of the CreateFileRequest class with the specified name and description.

Parameters:

name (required): Dictionary<string, string>
The name of the object in multiple languages.

description (required): Dictionary<string, string>
The description of the object in multiple languages.

Sets the properties Name and Description to the provided values, with default values for CreatedBy and CreatedAt.


CreateFileRequest(secretKey, contentInfo, name, description, documents, fileVersion)

Initializes a new instance of the CreateFileRequest class with the specified file information.

Parameters:

secretKey (required): string
The encrypted secret key for file security.

contentInfo (required): FileContentInfo
Information about the file content being created.

name (required): Dictionary<string, string>
The localized names for the file.

description (required): Dictionary<string, string>
The localized descriptions for the file.

documents (required): IEnumerable<CreateFileDocumentItem>
The collection of document items to be created.

fileVersion (required): FileVersion
The version information for the file.

This constructor creates a new CreateFileRequest instance by calling the full constructor with null values for createdBy and createdAt.