2 using System.Collections.Generic;
6 using Pithos.Interfaces;
11 public class WorkflowState
13 public AccountInfo AccountInfo { get; set; }
15 public string Path { get; set; }
16 public string FileName { get; set; }
18 public string OldPath { get; set; }
19 public string OldFileName{ get; set; }
21 public WatcherChangeTypes TriggeringChange { get; set; }
22 public FileStatus Status { get; set; }
24 public bool Skip { get; set; }
26 public string Hash { get; set; }
27 public string LastUpdateHash { get; set; }
30 public WorkflowState(AccountInfo accountInfo)
32 AccountInfo = accountInfo;
36 public WorkflowState()
41 public WorkflowState(AccountInfo accountInfo, FileState state)
43 AccountInfo = accountInfo;
44 Path = state.FilePath.ToLower();
45 FileName = System.IO.Path.GetFileName(state.FilePath).ToLower();
46 Hash = state.Checksum;
47 Status = state.OverlayStatus == FileOverlayStatus.Unversioned
51 state.OverlayStatus == FileOverlayStatus.Unversioned
52 ? WatcherChangeTypes.Created
53 : WatcherChangeTypes.Changed;