Class Sync
- java.lang.Object
-
- aero.panasonic.inflight.services.user.v2.Sync
-
- Direct Known Subclasses:
Additional,Bookmarks,Custom,Info,PlaylistManager,Preferences,Profile
public abstract class Sync extends java.lang.ObjectThe Sync class is an abstract class for services that handle synchronizations. This service synchronizes the item on local version, the version saved on the seatback monitor and version saved on the ground server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSync.SyncListener
-
Constructor Summary
Constructors Constructor Description Sync()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<? extends ConflictItem>getConflicts()Gets a list of theConflictItemvoidsetConflictStrategy(ConflictStrategy strategy)Sets the strategy for resolving conflicts.voidsetSyncListener(Sync.SyncListener syncListener)Sets a listener to listen for the syncronization updates.voidsynchronize()Triggers the synchronization.Create new playlist with nameCreate new playlist with name
-
-
-
Method Detail
-
getConflicts
public java.util.List<? extends ConflictItem> getConflicts()
Gets a list of theConflictItem- Returns:
- List of synchronization conflicts
-
synchronize
public void synchronize()
Triggers the synchronization.Create new playlist with nameCreate new playlist with name
-
setConflictStrategy
public void setConflictStrategy(ConflictStrategy strategy)
Sets the strategy for resolving conflicts.ConflictStrategy
Default isConflictStrategy.USER_DEFINED
-
setSyncListener
public void setSyncListener(Sync.SyncListener syncListener)
Sets a listener to listen for the syncronization updates.- Parameters:
syncListener-Sync.SyncListenercallback invoked indicating the result of sync operation performed.
-
-