canmove, Confirmed users
409
edits
No edit summary |
No edit summary |
||
| Line 52: | Line 52: | ||
* syncGUID (required) - The Sync GUID for this record | * syncGUID (required) - The Sync GUID for this record | ||
* syncData (optional) - The .syncData field from an add-on | * syncData (optional) - The .syncData field from an add-on | ||
* | * deleted (optional) - If evaluates to true, indicates that the record was deleted. Application of this record should involve trying to delete this add-on if present or no-op if not present. | ||
The implementation of applyRecords() will resemble the following pseudocode: | The implementation of applyRecords() will resemble the following pseudocode: | ||
| Line 58: | Line 58: | ||
<pre> | <pre> | ||
foreach record in records: | foreach record in records: | ||
if record. | if record.deleted: | ||
found = this.getAddonBySyncGUID(record.syncGUID) | found = this.getAddonBySyncGUID(record.syncGUID) | ||
if found: | if found: | ||