public SyncTask(List <string> localPaths, Uri serverDirUri, DateTime createDate, SyncTimer syncTimer, DateTime?lastSyncDate = null, int backupCount = 0) { LocalPaths = localPaths; ServerDirectoryUri = serverDirUri; CreateDate = createDate; LastSyncDate = lastSyncDate; BackupCount = backupCount; SyncTimer = syncTimer; }
public static SyncTask CreateSyncTask(List <string> localPaths, Uri serverDirUri, SyncTimer syncTimer, int backupCount = 0) { SyncTask syncTask = new SyncTask(localPaths, serverDirUri, DateTime.Now, syncTimer, null, backupCount); return(syncTask); }