The spv.vds.CampaignCollection Class

spv.vds.CampaignCollection(campaigns, error, is_being_refreshed, refreshed)

campaigns {Array.<spv.vds.Campaign>}
error {string}
is_being_refreshed {boolean}
refreshed {string}

.campaigns {Array.<spv.vds.Campaign>}

This array can contain campaigns if there are any validated campaigns available for the requested campaign feed.

.error {string}

This property can contain information from internal server errors for debugging and logging.

.is_being_refreshed {boolean}

The server is currently working on validating refreshed campaign data. Updating the campaign collections can take a significant amount of time due to the need to test load campaigns to assure compatibility with the currently available content data. To avoid timing out the connection this property will be set instead to indicate to the client that a refresh is recommended within a minute or two. The typical usage for this propery is for the GUI to display a loading indicator until refreshed campaign data can be retrieved.

.refreshed {string}

Timestamp for last refresh, TODO: change to Date