Skip to main content

GetVersionResponse Constructors

An object defining constructors for the GetVersionResponse class.

GetVersionResponse(versionId, commitId, isBranch, objectId, isDefault, createdBy, createdAt, version, tokenId)

Initializes a new instance of the GetVersionResponse class with auto-generated identifier.

Parameters:

versionId (required): long
The numeric identifier for the version or branch.

commitId (required): long
The identifier of the commit that created this version.

isBranch (required): bool
Whether this instance represents a branch.

objectId (required): long
The identifier of the parent document management object.

isDefault (required): bool
Whether this is the default version.

createdBy (required): ClientUserInfo
Information about the user who created this version.

createdAt (required): DateTimeOffset
The timestamp when this version was created.

version (required): string
The version number or identifier string.

tokenId (required): string
The security token identifier.

This constructor creates a new GetVersionResponse instance without requiring an explicit Id or SecretKey. It automatically generates the Id based on the IsBranch flag and VersionId, and the SecretKey will be populated through the EncryptData attribute.


GetVersionResponse(id, versionId, commitId, isBranch, objectId, isDefault, createdBy, createdAt, version, tokenId, secretKey)

Initializes a new instance of the GetVersionResponse class with complete version information.

Parameters:

id (required): string
The custom identifier for the version or branch.

versionId (required): long
The numeric identifier for the version or branch.

commitId (required): long
The identifier of the commit that created this version.

isBranch (required): bool
Whether this instance represents a branch.

objectId (required): long
The identifier of the parent document management object.

isDefault (required): bool
Whether this is the default version.

createdBy (required): ClientUserInfo
Information about the user who created this version.

createdAt (required): DateTimeOffset
The timestamp when this version was created.

version (required): string
The version number or identifier string.

tokenId (required): string
The security token identifier.

secretKey (required): string
The encrypted security key.

This constructor, marked with the JsonConstructor attribute for JSON deserialization support, creates a new GetVersionResponse instance with complete information. It initializes all properties including custom identifiers, security information, and metadata about the version or branch.


GetVersionResponse()

Initializes a new instance of the GetVersionResponse class.