Click or drag to resize
GDServiceSendResponseAsync Method
Call this function to respond to a consumer application from which a service request has been received in the BlackBerry Inter-Container Communication (ICC) system. The response can include a results map and file attachments to be conveyed to the consumer application. The results will notify the consumer of the success or failure of the request.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public IAsyncOperation<bool> SendResponseAsync(
	string requestId,
	string targetApp,
	IDictionary<string, string> resultValue,
	IList<IGDStorageFile> attachments,
	GDServiceError error
)

Parameters

requestId
Type: SystemString
The ID of the service request to which this is a response. The ID will have been passed as a parameter to the HandleRequest event handler.
targetApp
Type: SystemString
The native application identifier of the consumer, as supplied in the original service request.
resultValue
Type: System.Collections.GenericIDictionaryString, String
Key-Value string map containing request results.
attachments
Type: System.Collections.GenericIListIGDStorageFile
Files in the BlackBerry Dynamics secure file system that are to be attached to the response. See under File Attachments in the GDService class reference.
error
Type: GDGDServiceError
Error information to be returned to the requester if an error occurs. If null, the response will be treated as success. Note that this means errors that occur when attempting to deliver the response.

Return Value

Type: IAsyncOperationBoolean
When this method completes and the response was accepted by the ICC system, it returns true; otherwise false.
Remarks

For an overall description of ICC see the GDService class reference.

If the request failed for any reason, pass an GDServiceError object as the error argument.

If the request succeeded pass a null as the error argument.

See Also