1. Stylelabs.M.Sdk.Models.Jobs

Class FetchJobRequest

Base class for all fetch-job requests.

Inheritance

object

FetchJobRequest

AzureFetchJobRequest

FileFetchJobRequest

WebFetchJobRequest

Implements

IFetchJobRequest

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsJobs

Assembly: Stylelabs.M.Sdk.dll

Syntax

public abstract class FetchJobRequest : IFetchJobRequest

Constructors

FetchJobRequest(string, long)

Initializes a new instance of the FetchJobRequest class.

Declaration

protected FetchJobRequest(string description, long assetId)

Parameters

TypeNameDescription
stringdescriptionA user-friendly description of the fetch job.
longassetIdId 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

public long AssetId { get; }

Property Value

TypeDescription
long

Description

Gets a user-friendly description of the fetch job.

Declaration

public string Description { get; }

Property Value

TypeDescription
string

Methods

Validate()

Validates whether the fetch job is valid.

Declaration

public abstract void Validate()

Exceptions

TypeCondition
ValidationExceptionWhen one or more validation errors occurred.

Implements

IFetchJobRequest

If you have suggestions for improving this article, let us know!