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 Audio(string filePath) { ShellFile file = ShellFile.FromFilePath(filePath); FilePath = filePath; FileName = file.Properties.System.FileName.Value; BPM = new MediaProperty(file.Properties.System.Music.BeatsPerMinute.Value, MediaSection.Content); Composer = new ArrayMediaProperty(file.Properties.System.Music.Composer.Value, MediaSection.Content); AlbumArtist = new MediaProperty(file.Properties.System.Music.AlbumArtist.Value, MediaSection.Media); Album = new MediaProperty(file.Properties.System.Music.AlbumTitle.Value, MediaSection.Media); TrackNumber = new UintMediaProperty(file.Properties.System.Music.TrackNumber.Value, MediaSection.Media); ContributingArtists = new ArrayMediaProperty(file.Properties.System.Music.Artist.Value, MediaSection.Media); Genre = new ArrayMediaProperty(file.Properties.System.Music.Genre.Value, MediaSection.Media); 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); Subtitle = new MediaProperty(file.Properties.System.Media.Subtitle.Value, MediaSection.Description); Publisher = new MediaProperty(file.Properties.System.Media.Publisher.Value, MediaSection.Origin); AuthorURL = new MediaProperty(file.Properties.System.Media.AuthorUrl.Value, MediaSection.Origin); //Copyright = new MediaProperty(file.Properties.System.Copyright.Value; //Creator = file.Properties.System.Media.Creator.Value; WTF WHERE DID THIS GO?! }
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); }
public Audio() { FilePath = null; FileName = null; BPM = new MediaProperty(String.Empty, MediaSection.Content); Composer = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Content); AlbumArtist = new MediaProperty(String.Empty, MediaSection.Media); Album = new MediaProperty(String.Empty, MediaSection.Media); TrackNumber = new UintMediaProperty(null, MediaSection.Media); ContributingArtists = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Media); Genre = new ArrayMediaProperty(Array.Empty <string>(), MediaSection.Media); Comments = new MediaProperty(String.Empty, MediaSection.Description); Rating = new UintMediaProperty(null, MediaSection.Description); Title = new MediaProperty(String.Empty, MediaSection.Description); Subtitle = new MediaProperty(String.Empty, MediaSection.Description); Publisher = new MediaProperty(String.Empty, MediaSection.Origin); AuthorURL = new MediaProperty(String.Empty, MediaSection.Origin); //Copyright = new MediaProperty(file.Properties.System.Copyright.Value; //Creator = file.Properties.System.Media.Creator.Value; WTF WHERE DID THIS GO?! }