Esempio n. 1
0
        private static void OnSyncStatusChanged(MobeelizerSyncStatus status)
        {
            MobeelizerSyncStatusChangedEventHandler handler = SyncStatusChanged;

            if (handler != null)
            {
                handler(status);
            }
        }
Esempio n. 2
0
        internal void SetSyncStatus(MobeelizerSyncStatus mobeelizerSyncStatus)
        {
            MobeelizerSyncStatusChangedEventHandler handler = SyncStatusChanged;

            if (handler != null)
            {
                handler(mobeelizerSyncStatus);
            }

            this.syncStatus = mobeelizerSyncStatus;
        }
Esempio n. 3
0
        /// <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);
            }
        }
Esempio n. 4
0
 private void ChangeStatus(MobeelizerSyncStatus mobeelizerSyncStatus, String ticket)
 {
     this.application.GetTombstoningManager().SaveSyncTicket(ticket, isAllSynchronization);
     this.application.SetSyncStatus(mobeelizerSyncStatus);
 }
 private void ChangeStatus(MobeelizerSyncStatus mobeelizerSyncStatus, String ticket)
 {
     this.application.GetTombstoningManager().SaveSyncTicket(ticket, isAllSynchronization);
     this.application.SetSyncStatus(mobeelizerSyncStatus);
 }
        internal void SetSyncStatus(MobeelizerSyncStatus mobeelizerSyncStatus)
        {
            MobeelizerSyncStatusChangedEventHandler handler = SyncStatusChanged;
            if (handler != null)
            {
                handler(mobeelizerSyncStatus);
            }

            this.syncStatus = mobeelizerSyncStatus;
        }
Esempio n. 7
0
 private static void OnSyncStatusChanged(MobeelizerSyncStatus status)
 {
     MobeelizerSyncStatusChangedEventHandler handler = SyncStatusChanged;
     if (handler != null)
     {
         handler(status);
     }
 }