Exemplo n.º 1
0
        private HashSet <string> DetectUniqueEquipment(string folderPath)
        {
            HashSet <string> uniqueEquipment = new HashSet <string>();

            var filePaths = _folderManager.GetMediaFilesFromFolder(folderPath);

            foreach (var filePath in filePaths)
            {
                var equipmentName = _imageMetaDataExtractor.GetEquipmentName(filePath);
                uniqueEquipment.Add(equipmentName);
            }

            return(uniqueEquipment);
        }
Exemplo n.º 2
0
        private DateTime GetImageDateTaken(string filePath)
        {
            var equipmentName = _imageMetaDataExtractor.GetEquipmentName(filePath);
            var dateTaken     = _imageMetaDataExtractor.GetOriginalCreationDateTime(filePath);

            var equipment = Options.EquipmentList.FirstOrDefault(e => e.Name == equipmentName);

            if (equipment != null)
            {
                dateTaken = dateTaken.AddHours(equipment.HourOffset);
            }

            return(dateTaken);
        }