Services/Sync/Features/Addon Sync: Difference between revisions

Jump to navigation Jump to search
no edit summary
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
* isDeleted (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.
* 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.isDeleted:
   if record.deleted:
     found = this.getAddonBySyncGUID(record.syncGUID)
     found = this.getAddonBySyncGUID(record.syncGUID)
     if found:
     if found:
canmove, Confirmed users
409

edits

Navigation menu