com.todoroo.astrid.sync
Class SyncContainer

java.lang.Object
  extended by com.todoroo.astrid.sync.SyncContainer

public class SyncContainer
extends java.lang.Object

Container class for transmitting tasks and including local and remote metadata. Synchronization Providers can subclass this class if desired.

Author:
Tim Su
See Also:
SyncProvider

Field Summary
 java.util.ArrayList<Metadata> metadata
           
 Task task
           
 
Constructor Summary
SyncContainer()
           
 
Method Summary
 Metadata findMetadata(java.lang.String key)
          Check if the metadata contains anything with the given key
 void prepareForSaving()
          Method called when sync container is about to be saved into the database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

task

public Task task

metadata

public java.util.ArrayList<Metadata> metadata
Constructor Detail

SyncContainer

public SyncContainer()
Method Detail

findMetadata

public Metadata findMetadata(java.lang.String key)
Check if the metadata contains anything with the given key

Parameters:
key -
Returns:
first match. or null

prepareForSaving

public void prepareForSaving()
Method called when sync container is about to be saved into the database.