Click or drag to resize
GDServiceResponseHandler Delegate
This callback is invoked when a response is received to a service request that was sent within the BlackBerry Inter-Container Communication (ICC) system. The parameters give the details of the service response.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public delegate void GDServiceResponseHandler(
	string srcApp,
	IDictionary<string, string> params,
	IList<IGDStorageFile> attachments,
	GDServiceError error,
	string requestId
)

Parameters

srcApp
Type: SystemString
The BlackBerry Dynamics Entitlement identifier of the provider application to which the original service request was sent.
params
Type: System.Collections.GenericIDictionaryString, String
The results key-value map, as returned by the provider application.
attachments
Type: System.Collections.GenericIListIGDStorageFile
Files that were attached to the service response. See under File Attachments in the GDService class reference.
error
Type: GDGDServiceError
Error object transporting information about possible request fail details.
requestId
Type: SystemString
The ID assigned to the original service request. An application that makes multiple concurrent service requests can use this value to tie the response back to the original request. The application must have retained the ID from when GDServiceClient::SendRequestAsync(String, String, String, String, IDictionaryString, String, IListIGDStorageFile, String) was originally called.
Remarks

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

A service response may be received in relation to a call to GDService::SendResponseAsync(String, String, IDictionaryString, String, IListIGDStorageFile, GDServiceError) that was accepted by the ICC system.

The response can include file attachments and a results map from the provider application. Check the value of the error determine whether the service request succeeded.

If the value of error object is null then the service request succeeded. Otherwise error object should have a suitable error Code set.

See Also

Reference