Esempio n. 1
0
        public void ReadImageFileIndexMaster(IMakerClient client, string indexedLocation)
        {
            var indexedFiles = client.ReadImageFileIndex(indexedLocation);

            Files = indexedFiles.Files.ToList();
            Error = indexedFiles.Error;
        }
Esempio n. 2
0
        // Returns all files in indexed location that have not been imported
        public void ReadImageFileIndex(IMakerClient client, string indexedLocation, string id)
        {
            var indexedFiles = client.ReadImageFileIndex(indexedLocation);
            var response     = client.ReadProject(id);

            if (response == null || response.Project == null)
            {
                Error = "Invalid request project does not exist";
            }
            else if (response.Project.SmallFileIds == null || response.Project.SmallFileIds.Count == 0)
            {
                Files = indexedFiles.Files.ToList();
                Error = indexedFiles.Error;
            }
            else
            {
                Files = indexedFiles.Files.Where(x => !response.Project.SmallFileIds.Contains(x.Id)).ToList();
                Error = indexedFiles.Error;
            }
        }