Class FetchJobRequest
Base class for all fetch-job requests.
Implements
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsJobs
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public abstract class FetchJobRequest : IFetchJobRequestConstructors
FetchJobRequest(string, long)
Initializes a new instance of the FetchJobRequest class.
Declaration
RequestResponse
protected FetchJobRequest(string description, long assetId)Parameters
| Type | Name | Description |
|---|---|---|
| string | description |
A user-friendly description of the fetch job. |
| long | assetId |
Id of the asset to link the fetched file to. |
Properties
AssetId
Gets the id of the asset to link the newly fetched file to.
Declaration
RequestResponse
public long AssetId { get; }Property Value
| Type | Description |
|---|---|
| long |
Description
Gets a user-friendly description of the fetch job.
Declaration
RequestResponse
public string Description { get; }Property Value
| Type | Description |
|---|---|
| string |
Methods
Validate()
Validates whether the fetch job is valid.
Declaration
RequestResponse
public abstract void Validate()Exceptions
| Type | Condition |
|---|---|
| ValidationException |
When one or more validation errors occurred. |