C# Class TodotxtTouch.WindowsPhone.Service.TaskFileService

Afficher le fichier Open project: hartez/TodotxtTouch.WindowsPhone Class Usage Examples

Protected Properties

Свойство Type Description
Settings ApplicationSettings

Private Properties

Свойство Type Description
CacheForMerge void
CacheForMerge void
ClearTaskPropertyChangedHandlers void
GetRemoteMetaData void
InitTaskPropertyChangedHandlers void
IntiateMerge void
LoadTasks void
MergeTaskLists void
OverwriteWithRemoteFile void
PauseCollectionChanged void
PushLocal void
ReadLocalFile byte[]
ResumeCollectionChanged void
SaveToStorage void
SendSyncError void
Start void
Sync void
TaskListCollectionChanged void
TaskPropertyChanged void
UseRemoteFile void

Méthodes publiques

Méthode Description
InvokeLoadingStateChanged ( LoadingStateChangedEventArgs e ) : void
InvokeLocalHasChangesChanged ( LocalHasChangesChangedEventArgs e ) : void
InvokeSynchronizationError ( SynchronizationErrorEventArgs e ) : void
InvokeTaskListChanged ( TaskListChangedEventArgs e ) : void
ReadFully ( Stream stream, int initialLength ) : byte[]

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.

SaveTasks ( ) : void
Sync ( ) : void
UpdateTask ( todotxtlib.net.Task task, todotxtlib.net.Task oldTask ) : void

Méthodes protégées

Méthode Description
GetFileName ( ) : string
GetFilePath ( ) : string
TaskFileService ( DropboxService dropBoxService, ApplicationSettings settings ) : System

Private Methods

Méthode Description
CacheForMerge ( ) : void
CacheForMerge ( IsolatedStorageFile appStorage ) : void
ClearTaskPropertyChangedHandlers ( ) : void
GetRemoteMetaData ( Action success, Action failure ) : void
InitTaskPropertyChangedHandlers ( ) : void
IntiateMerge ( ) : void
LoadTasks ( ) : void
MergeTaskLists ( string remoteTaskContents ) : void
OverwriteWithRemoteFile ( IRestResponse response, string latestRevision ) : void
PauseCollectionChanged ( ) : void
PushLocal ( ) : void
ReadLocalFile ( string fileName ) : byte[]
ResumeCollectionChanged ( ) : void
SaveToStorage ( ) : void
SendSyncError ( Exception ex ) : void
Start ( ) : void
Sync ( DropNet.Models.MetaData data ) : void
TaskListCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
TaskPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
UseRemoteFile ( string latestRevision ) : void

Method Details

GetFileName() protected abstract méthode

protected abstract GetFileName ( ) : string
Résultat string

GetFilePath() protected abstract méthode

protected abstract GetFilePath ( ) : string
Résultat string

InvokeLoadingStateChanged() public méthode

public InvokeLoadingStateChanged ( LoadingStateChangedEventArgs e ) : void
e TodotxtTouch.WindowsPhone.ViewModel.LoadingStateChangedEventArgs
Résultat void

InvokeLocalHasChangesChanged() public méthode

public InvokeLocalHasChangesChanged ( LocalHasChangesChangedEventArgs e ) : void
e LocalHasChangesChangedEventArgs
Résultat void

InvokeSynchronizationError() public méthode

public InvokeSynchronizationError ( SynchronizationErrorEventArgs e ) : void
e SynchronizationErrorEventArgs
Résultat void

InvokeTaskListChanged() public méthode

public InvokeTaskListChanged ( TaskListChangedEventArgs e ) : void
e TaskListChangedEventArgs
Résultat void

ReadFully() public static méthode

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.
public static ReadFully ( Stream stream, int initialLength ) : byte[]
stream Stream The stream to read data from
initialLength int The initial buffer length
Résultat byte[]

SaveTasks() public méthode

public SaveTasks ( ) : void
Résultat void

Sync() public méthode

public Sync ( ) : void
Résultat void

TaskFileService() protected méthode

protected TaskFileService ( DropboxService dropBoxService, ApplicationSettings settings ) : System
dropBoxService DropboxService
settings ApplicationSettings
Résultat System

UpdateTask() public méthode

public UpdateTask ( todotxtlib.net.Task task, todotxtlib.net.Task oldTask ) : void
task todotxtlib.net.Task
oldTask todotxtlib.net.Task
Résultat void

Property Details

Settings protected_oe property

protected ApplicationSettings Settings
Résultat ApplicationSettings