Roassetfetcherevent, Roassetfetcherprogressevent – BrightSign Object Reference Manual (FW 5.1) User Manual
Page 177

169
roAssetFetcherEvent
This event is generated by an roAssetFetcher object when a file transfer succeeds or fails, or when population of the
asset pool as a whole succeeds or fails.
Interfaces:
The ifAssetFetcherEvent interface provides the following:
•
GetEvent() As Integer: Returns an integer indicating the result of an roAssetFetcher download attempt:
o 1: POOL_EVENT_FILE_DOWNLOADED
o -1: POOL_EVENT_FILE_FAILED
o 2: POOL_EVENT_ALL_DOWNLOADED
o -2: POOL_EVENT_ALL_FAILED
•
GetName() As String
•
GetResponseCode() As Integer: Returns the protocol response code associated with an event. The following
codes indicate success:
o 200: Successful HTTP transfer
o 226: Successful FTP transfer
o 0: Successful local file transfer
For unexpected errors, the return value is negative. There are many possible negative errors from the CURL library,
but it is often best to look at the text version by calling
GetFailureReason().
Here are some potential errors. Not all of them can be generated by a BrightSign player:
Status
Name
Description
-1
CURLE_UNSUPPORTED_PROTOCOL
-2
CURLE_FAILED_INIT
-3
CURLE_URL_MALFORMAT
-5
CURLE_COULDNT_RESOLVE_PROXY