public List <string> GetUniquePaths(PhotoPathType pathType) { return(RelativePaths? .Where(p => p.PathType == pathType) .Select(p => p.RelativePath) .Distinct() .ToList()); }
public static Photo Create(string filePath, PhotoPathType pathType = PhotoPathType.Source) { if (pathType != PhotoPathType.Source) { throw new NotImplementedException("Currently only supports PhotoPathType.Source."); } return(new Photo(filePath)); }
public Photo(string filePath, PhotoPathType pathType = PhotoPathType.Source) { SourceFileName = Path.GetFileName(filePath); SourceDirectory = Path.GetDirectoryName(filePath); }
public PhotoPath(PhotoPathType type, string path) { Type = type; Path = path; }