ContentDataExtension

@requestnetwork/request-client.jsGlobals"api/content-data-extension"ContentDataExtension

Handles the content data of a request

Hierarchy

  • ContentDataExtension

Index

Constructors

Properties

Methods

Constructors

constructor

+ new ContentDataExtension(advancedLogic: IAdvancedLogic): ContentDataExtension

Defined in request-client.js/src/api/content-data-extension.ts:12

Parameters:

NameTypeDescription
advancedLogicIAdvancedLogicInstance of the advanced logic layer

Returns: ContentDataExtension

Properties

Private extension

extension: IContentData

Defined in request-client.js/src/api/content-data-extension.ts:12

Methods

createExtensionsDataForCreation

createExtensionsDataForCreation(content: any): any

Defined in request-client.js/src/api/content-data-extension.ts:27

Creates the extensions data for the creation of this extension

Parameters:

NameTypeDescription
contentanyContent to link to the request

Returns: any

ExtensionsData ready to be added to the request


getContent

getContent(request: IRequest | RequestLogicTypes.IPendingRequest | null): any

Defined in request-client.js/src/api/content-data-extension.ts:48

Gets the content from the extensions state

Parameters:

NameTypeDescription
requestIRequest | RequestLogicTypes.IPendingRequest | nullThe request of which we want the content

Returns: any

The content