public Video(string filePath) { ShellFile file = ShellFile.FromFilePath(filePath); FilePath = filePath; FileName = file.Properties.System.FileName.Value; Tags = new ArrayMediaProperty(file.Properties.System.Keywords.Value, MediaSection.Description); Subtitle = new MediaProperty(file.Properties.System.Media.Subtitle.Value, MediaSection.Description); Comments = new MediaProperty(file.Properties.System.Comment.Value, MediaSection.Description); Rating = new UintMediaProperty(file.Properties.System.Rating.Value, MediaSection.Description); Title = new MediaProperty(file.Properties.System.Title.Value, MediaSection.Description); Directors = new ArrayMediaProperty(file.Properties.System.Video.Director.Value, MediaSection.Origin); Producers = new ArrayMediaProperty(file.Properties.System.Media.Producer.Value, MediaSection.Origin); Writers = new ArrayMediaProperty(file.Properties.System.Media.Writer.Value, MediaSection.Origin); MediaCreated = new DateTimeMediaProperty(file.Properties.System.DateCreated.Value, MediaSection.Origin); AuthorURL = new MediaProperty(file.Properties.System.Media.AuthorUrl.Value, MediaSection.Origin); PromotionalURL = new MediaProperty(file.Properties.System.Media.PromotionUrl.Value, MediaSection.Origin); Publisher = new MediaProperty(file.Properties.System.Media.Publisher.Value, MediaSection.Origin); ContributingArtists = new ArrayMediaProperty(file.Properties.System.Music.Artist.Value, MediaSection.Media); Genre = new ArrayMediaProperty(file.Properties.System.Music.Genre.Value, MediaSection.Media); Year = new UintMediaProperty(file.Properties.System.Media.Year.Value, MediaSection.Media); }
public Picture() { FilePath = null; FileName = null; Comments = new MediaProperty(String.Empty, MediaSection.Description); Title = new MediaProperty(String.Empty, MediaSection.Description); Tags = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Description); Subject = new MediaProperty(String.Empty, MediaSection.Description); Rating = new UintMediaProperty(null, MediaSection.Description); Authors = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Origin); ProgramName = new MediaProperty(String.Empty, MediaSection.Origin); DateAcquired = new DateTimeMediaProperty(null, MediaSection.Origin); DateTaken = new DateTimeMediaProperty(null, MediaSection.Origin); }
//public String Copyright { get; set; } #endregion public Picture(string filePath) { ShellFile file = ShellFile.FromFilePath(filePath); FilePath = filePath; FileName = file.Properties.System.FileName.Value; Comments = new MediaProperty(file.Properties.System.Comment.Value, MediaSection.Description); Title = new MediaProperty(file.Properties.System.Title.Value, MediaSection.Description); Tags = new ArrayMediaProperty(file.Properties.System.Keywords.Value, MediaSection.Description); Subject = new MediaProperty(file.Properties.System.Subject.Value, MediaSection.Description); Rating = new UintMediaProperty(file.Properties.System.Rating.Value, MediaSection.Description); Authors = new ArrayMediaProperty(file.Properties.System.Author.Value, MediaSection.Origin); ProgramName = new MediaProperty(file.Properties.System.ApplicationName.Value, MediaSection.Origin); DateAcquired = new DateTimeMediaProperty(file.Properties.System.DateAcquired.Value, MediaSection.Origin); DateTaken = new DateTimeMediaProperty(file.Properties.System.Photo.DateTaken.Value, MediaSection.Origin); //Copyright = file.Properties.System.Copyright.Value; }
public Video() { FilePath = null; FileName = null; Tags = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Description); Subtitle = new MediaProperty(String.Empty, MediaSection.Description); Comments = new MediaProperty(String.Empty, MediaSection.Description); Rating = new UintMediaProperty(null, MediaSection.Description); Title = new MediaProperty(String.Empty, MediaSection.Description); Directors = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Origin); Producers = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Origin); Writers = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Origin); MediaCreated = new DateTimeMediaProperty(null, MediaSection.Origin); AuthorURL = new MediaProperty(String.Empty, MediaSection.Origin); PromotionalURL = new MediaProperty(String.Empty, MediaSection.Origin); Publisher = new MediaProperty(String.Empty, MediaSection.Origin); ContributingArtists = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Media); Genre = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Media); Year = new UintMediaProperty(null, MediaSection.Media); }