/// <summary> /// Ctor /// </summary> /// <param name="filename"></param> /// <param name="mock"></param> public PictureModel(string filename, bool mock = false) { FileName = filename; Camera = new CameraModel(); //if (mock) return; //EXIF = MetaDataExtractor<EXIFModel>.Create(filename); //IPTC = MetaDataExtractor<IPTCModel>.Create(filename); }
public PictureModel(int ID) { this.ID = ID; EXIF = new EXIFModel(); IPTC = new IPTCModel(); Photographer = new PhotographerModel(); Camera = new CameraModel(); }
public PictureModel() { IPTC = new IPTCModel(); IPTC = new IPTCModel(); EXIF = new EXIFModel(); Camera = new CameraModel(); Photographer = new PhotographerModel(); }
public PictureModel(IPictureViewModel viewModel) { ID = viewModel.ID; FileName = viewModel.FileName; IPTC = new IPTCModel(viewModel.IPTC); EXIF = new EXIFModel(viewModel.EXIF); if (viewModel.Camera != null) { Camera = new CameraModel(viewModel.Camera); } if (viewModel.Photographer != null) { Photographer = new PhotographerModel(viewModel.Photographer); } }