private static void OnSyncStatusChanged(MobeelizerSyncStatus status) { MobeelizerSyncStatusChangedEventHandler handler = SyncStatusChanged; if (handler != null) { handler(status); } }
internal void SetSyncStatus(MobeelizerSyncStatus mobeelizerSyncStatus) { MobeelizerSyncStatusChangedEventHandler handler = SyncStatusChanged; if (handler != null) { handler(mobeelizerSyncStatus); } this.syncStatus = mobeelizerSyncStatus; }
/// <summary> /// Indicates whether sync task is running. /// </summary> /// <param name="status">Sync status.</param> /// <returns>True if sync is running.</returns> public static bool IsRunning(this MobeelizerSyncStatus status) { switch (status) { case MobeelizerSyncStatus.STARTED: case MobeelizerSyncStatus.TASK_CREATED: case MobeelizerSyncStatus.FILE_CREATED: case MobeelizerSyncStatus.FILE_RECEIVED: case MobeelizerSyncStatus.TASK_PERFORMED: return(true); case MobeelizerSyncStatus.NONE: case MobeelizerSyncStatus.FINISHED_WITH_FAILURE: case MobeelizerSyncStatus.FINISHED_WITH_SUCCESS: default: return(false); } }
private void ChangeStatus(MobeelizerSyncStatus mobeelizerSyncStatus, String ticket) { this.application.GetTombstoningManager().SaveSyncTicket(ticket, isAllSynchronization); this.application.SetSyncStatus(mobeelizerSyncStatus); }