EMS.Services.IEMSResourceRequest.CreateRequestContent

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
EMS.Services.pas
EMS.Services.hpp
Unit: EMS.Services
Parent: IEMSResourceRequest

Delphi

function CreateRequestContent(const AJSON: TJSONValue): IEMSResourceRequestContent; overload;
function CreateRequestContent(const AContentType: string; const AStream: TStream): IEMSResourceRequestContent; overload;
function CreateRequestContent(const AContentType: string; const ABytes: TBytes): IEMSResourceRequestContent; overload;

C++

virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(System::Json::TJSONValue* const AJSON) = 0 /* overload */;
virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(const System::UnicodeString AContentType, System::Classes::TStream* const AStream) = 0 /* overload */;
virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(const System::UnicodeString AContentType, const System::Sysutils::TBytes ABytes) = 0 /* overload */;

Description

Creates the payload content of an EMS Resource request.

The CreateRequestContent method is overloaded:

  • The first overloaded method creates the payload for the request from a JSON object AJSON. The content type of this request is application/json.
  • The second overloaded method creates the payload for the request from the stream AStream. Indicate the content type (AContentType) of the payload.
  • The third overloaded method creates the payload for the request from the byte array ABytes. Indicate the content type (AContentType) of the payload.

CreateRequestContent returns an IEMSResourceRequestContent to read the response from the resource.

See Also