Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can populate an asset collection with individual calls to AddAsset() or AddAssets(). You can also populate an asset collection using the roSyncSpec.GetAssets() method, as shown below:

Code Block
assetCollection = CreateObject("roAssetCollection")
 
localCurrentSync = CreateObject("roSyncSpec")
if localCurrentSync.ReadFromFile("local-sync.xml") then
	assetCollection = localCurrentSync.GetAssets("download")
endif

...

GetFailureReason() As String
 
AddAsset(asset_info As

...

Dynamic) As Boolean

Adds a single asset from an associative array or JSON-formatted string. If the argument is a string, it should match the format used for a single asset in a JSON sync spec.

AddAssets(asset_info_array As

...

Dynamic) As Boolean

Adds multiple assets from an enumerable object (an roListor roArrayroArray, or string containing a JSON-formatted array) that contains compatible associative arrays.

...