Skip to main content

CreateContentRequest Constructors

An object defining constructors for the CreateContentRequest class.

CreateContentRequest()

Initializes a new instance of the CreateContentRequest class.


CreateContentRequest(name, description, createdBy, createdAt)

Initializes a new instance of the CreateContentRequest 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.


CreateContentRequest()

Initializes a new instance of the CreateContentRequest class.

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


CreateContentRequest(secretKey, branchSecretKey, commitMessage, isDefault, mimeType, length, name, description)

Initializes a new instance of the CreateContentRequest class with the specified content details.

Parameters:

secretKey (required): string
The secret key for decrypting the object secret.

branchSecretKey (required): string
The secret key for decrypting the branch secret.

commitMessage (required): string
The commit message associated with the content creation.

isDefault (required): bool
Indicates whether the content is set as the default.

mimeType (required): string
The MIME type of the content.

length (required): long
The length of the content in bytes.

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 SecretKey, BranchSecretKey, CommitMessage, IsDefault, MimeType, Length, Name, and Description to the provided values, with default values for CreatedBy and CreatedAt.


CreateContentRequest(secretKey, branchSecretKey, commitMessage, isDefault, mimeType, length, name, description, createdBy, createdAt)

Initializes a new instance of the CreateContentRequest class with the specified content and creation details.

Parameters:

secretKey (required): string
The secret key for decrypting the object secret.

branchSecretKey (required): string
The secret key for decrypting the branch secret.

commitMessage (required): string
The commit message associated with the content creation.

isDefault (required): bool
Indicates whether the content is set as the default.

mimeType (required): string
The MIME type of the content.

length (required): long
The length of the content in bytes.

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 SecretKey, BranchSecretKey, CommitMessage, IsDefault, MimeType, Length, Name, Description, CreatedBy, and CreatedAt to the provided values.


CreateContentRequest(name, description)

Initializes a new instance of the CreateContentRequest 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.