From e228639d1f439c6a3da5f43f588f919014a6ee98 Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Sun, 21 May 2023 18:47:35 -0500 Subject: [PATCH] Add generated classes for known UIX schemas --- ZuneImpl/Schemas/Album.cs | 103 +++++++++++ ZuneImpl/Schemas/App.cs | 103 +++++++++++ ZuneImpl/Schemas/Artist.cs | 49 +++++ ZuneImpl/Schemas/Genre.cs | 19 ++ ZuneImpl/Schemas/MarkupDataType.cs | 21 +++ ZuneImpl/Schemas/Media.cs | 47 +++++ ZuneImpl/Schemas/MediaFolder.cs | 61 +++++++ ZuneImpl/Schemas/Pin.cs | 72 ++++++++ ZuneImpl/Schemas/Playlist.cs | 108 +++++++++++ ZuneImpl/Schemas/PlaylistContentItem.cs | 78 ++++++++ ZuneImpl/Schemas/PodcastEpisode.cs | 84 +++++++++ ZuneImpl/Schemas/PodcastSeries.cs | 47 +++++ ZuneImpl/Schemas/RankedArtist.cs | 17 ++ ZuneImpl/Schemas/RateableMedia.cs | 17 ++ ZuneImpl/Schemas/SubscriptionEpisode.cs | 90 ++++++++++ ZuneImpl/Schemas/SubscriptionSeries.cs | 54 ++++++ ZuneImpl/Schemas/SyncItem.cs | 90 ++++++++++ ZuneImpl/Schemas/Track.cs | 229 ++++++++++++++++++++++++ ZuneImpl/Schemas/Video.cs | 212 ++++++++++++++++++++++ 19 files changed, 1501 insertions(+) create mode 100644 ZuneImpl/Schemas/Album.cs create mode 100644 ZuneImpl/Schemas/App.cs create mode 100644 ZuneImpl/Schemas/Artist.cs create mode 100644 ZuneImpl/Schemas/Genre.cs create mode 100644 ZuneImpl/Schemas/MarkupDataType.cs create mode 100644 ZuneImpl/Schemas/Media.cs create mode 100644 ZuneImpl/Schemas/MediaFolder.cs create mode 100644 ZuneImpl/Schemas/Pin.cs create mode 100644 ZuneImpl/Schemas/Playlist.cs create mode 100644 ZuneImpl/Schemas/PlaylistContentItem.cs create mode 100644 ZuneImpl/Schemas/PodcastEpisode.cs create mode 100644 ZuneImpl/Schemas/PodcastSeries.cs create mode 100644 ZuneImpl/Schemas/RankedArtist.cs create mode 100644 ZuneImpl/Schemas/RateableMedia.cs create mode 100644 ZuneImpl/Schemas/SubscriptionEpisode.cs create mode 100644 ZuneImpl/Schemas/SubscriptionSeries.cs create mode 100644 ZuneImpl/Schemas/SyncItem.cs create mode 100644 ZuneImpl/Schemas/Track.cs create mode 100644 ZuneImpl/Schemas/Video.cs diff --git a/ZuneImpl/Schemas/Album.cs b/ZuneImpl/Schemas/Album.cs new file mode 100644 index 0000000..55d0f38 --- /dev/null +++ b/ZuneImpl/Schemas/Album.cs @@ -0,0 +1,103 @@ +using Microsoft.Iris.Drawing; +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class Album : Media +{ + public Album(MarkupTypeSchema schema) : base(schema) + { + } + + public int ArtistLibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ArtistName + { + get => GetProperty(); + set => SetProperty(value); + } + + public Guid ZuneMediaId + { + get => GetProperty(); + set => SetProperty(value); + } + + public bool HasAlbumArt + { + get => GetProperty(); + set => SetProperty(value); + } + + public UIImage AlbumArtSmall + { + get => GetProperty(); + set => SetProperty(value); + } + + public UIImage AlbumArtLarge + { + get => GetProperty(); + set => SetProperty(value); + } + + public UIImage AlbumArtSuperLarge + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ThumbnailPath + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime ReleaseDate + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAdded + { + get => GetProperty(); + set => SetProperty(value); + } + + public int ContributingArtistCount + { + get => GetProperty(); + set => SetProperty(value); + } + + public int DisplayArtistCount + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateLastPlayed + { + get => GetProperty(); + set => SetProperty(value); + } + + public long DrmStateMask + { + get => GetProperty(); + set => SetProperty(value); + } + + public int QuickMixState + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/App.cs b/ZuneImpl/Schemas/App.cs new file mode 100644 index 0000000..08b1878 --- /dev/null +++ b/ZuneImpl/Schemas/App.cs @@ -0,0 +1,103 @@ +using Microsoft.Iris.Drawing; +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class App : Media +{ + public App(MarkupTypeSchema schema) : base(schema) + { + } + + public UIImage Thumbnail + { + get => GetProperty(); + set => SetProperty(value); + } + + public int CategoryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public Guid ZuneMediaId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Description + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Version + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Author + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Genre + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAdded + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime ReleaseDate + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ParentalRating + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateModified + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FileName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FolderName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FilePath + { + get => GetProperty(); + set => SetProperty(value); + } + + public long FileSize + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/Artist.cs b/ZuneImpl/Schemas/Artist.cs new file mode 100644 index 0000000..7f1844c --- /dev/null +++ b/ZuneImpl/Schemas/Artist.cs @@ -0,0 +1,49 @@ +using Microsoft.Iris.Drawing; +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class Artist : RateableMedia +{ + public Artist(MarkupTypeSchema schema) : base(schema) + { + } + + public Guid ZuneMediaId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int NumberOfAlbums + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateLastPlayed + { + get => GetProperty(); + set => SetProperty(value); + } + + public long DrmStateMask + { + get => GetProperty(); + set => SetProperty(value); + } + + public int QuickMixState + { + get => GetProperty(); + set => SetProperty(value); + } + + public UIImage Image + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/Genre.cs b/ZuneImpl/Schemas/Genre.cs new file mode 100644 index 0000000..c67cf31 --- /dev/null +++ b/ZuneImpl/Schemas/Genre.cs @@ -0,0 +1,19 @@ +using Microsoft.Iris.Markup; +using Microsoft.Iris.UI; +using System; + +namespace Microsoft.Zune.Schemas; + +public class Genre : Media +{ + public Genre(MarkupTypeSchema schema) : base(schema) + { + } + + public DateTime DateLastPlayed + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/MarkupDataType.cs b/ZuneImpl/Schemas/MarkupDataType.cs new file mode 100644 index 0000000..5591f19 --- /dev/null +++ b/ZuneImpl/Schemas/MarkupDataType.cs @@ -0,0 +1,21 @@ +using Microsoft.Iris.Markup; +using Microsoft.Iris.UI; +using System.Runtime.CompilerServices; + +namespace Microsoft.Zune.Schemas; + +public abstract class MarkupDataType +{ + private readonly Class _item; + + public MarkupDataType(MarkupTypeSchema schema) + { + _item = new Class(schema); + } + + public Class Item => _item; + + protected void SetProperty(T value, [CallerMemberName] string name = "") => _item.SetProperty(name, value); + + protected T GetProperty([CallerMemberName] string name = "") => (T)_item.GetProperty(name); +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/Media.cs b/ZuneImpl/Schemas/Media.cs new file mode 100644 index 0000000..cc7f246 --- /dev/null +++ b/ZuneImpl/Schemas/Media.cs @@ -0,0 +1,47 @@ +using Microsoft.Iris.Markup; + +namespace Microsoft.Zune.Schemas; + +public class Media : MarkupDataType +{ + public Media(MarkupTypeSchema schema) : base(schema) + { + } + + public int LibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Title + { + get => GetProperty(); + set => SetProperty(value); + } + + public int SyncState + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Type + { + get => GetProperty(); + set => SetProperty(value); + } + + public long DeviceFileSize + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Copyright + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/MediaFolder.cs b/ZuneImpl/Schemas/MediaFolder.cs new file mode 100644 index 0000000..aee73ec --- /dev/null +++ b/ZuneImpl/Schemas/MediaFolder.cs @@ -0,0 +1,61 @@ +using Microsoft.Iris.Drawing; +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class MediaFolder : Media +{ + public MediaFolder(MarkupTypeSchema schema) : base(schema) + { + } + + public int ParentId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FolderPath + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Count + { + get => GetProperty(); + set => SetProperty(value); + } + + public bool HasChildFolders + { + get => GetProperty(); + set => SetProperty(value); + } + + public int TotalCount + { + get => GetProperty(); + set => SetProperty(value); + } + + public UIImage Thumbnail + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime LastPlayed + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAdded + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/Pin.cs b/ZuneImpl/Schemas/Pin.cs new file mode 100644 index 0000000..7799665 --- /dev/null +++ b/ZuneImpl/Schemas/Pin.cs @@ -0,0 +1,72 @@ +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class Pin : MarkupDataType +{ + public Pin(MarkupTypeSchema schema) : base(schema) + { + } + + public int PinId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int PinType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Ordinal + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Description + { + get => GetProperty(); + set => SetProperty(value); + } + + public int MediaId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int MediaType + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ZuneMediaRef + { + get => GetProperty(); + set => SetProperty(value); + } + + public int ZuneMediaType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int UserId + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateModified + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/Playlist.cs b/ZuneImpl/Schemas/Playlist.cs new file mode 100644 index 0000000..bafec84 --- /dev/null +++ b/ZuneImpl/Schemas/Playlist.cs @@ -0,0 +1,108 @@ +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class Playlist : SubscriptionSeries +{ + public Playlist(MarkupTypeSchema schema) : base(schema) + { + } + + public int PlaylistType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Count + { + get => GetProperty(); + set => SetProperty(value); + } + + public TimeSpan TotalTime + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Status + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime ReleaseDate + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAdded + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateLastPlayed + { + get => GetProperty(); + set => SetProperty(value); + } + + public string PublishInterval + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Genre + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Category + { + get => GetProperty(); + set => SetProperty(value); + } + + public long MaxChannelSize + { + get => GetProperty(); + set => SetProperty(value); + } + + public bool AutoRefresh + { + get => GetProperty(); + set => SetProperty(value); + } + + public int AutoRefreshFreq + { + get => GetProperty(); + set => SetProperty(value); + } + + public int LimitType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int LimitValue + { + get => GetProperty(); + set => SetProperty(value); + } + + public int SubType + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/PlaylistContentItem.cs b/ZuneImpl/Schemas/PlaylistContentItem.cs new file mode 100644 index 0000000..df11f59 --- /dev/null +++ b/ZuneImpl/Schemas/PlaylistContentItem.cs @@ -0,0 +1,78 @@ +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class PlaylistContentItem : RateableMedia +{ + public PlaylistContentItem(MarkupTypeSchema schema) : base(schema) + { + } + + public int MediaId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int MediaType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Ordinal + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ArtistName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string AlbumName + { + get => GetProperty(); + set => SetProperty(value); + } + + public int AlbumLibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int AlbumArtistLibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FilePath + { + get => GetProperty(); + set => SetProperty(value); + } + + public TimeSpan Duration + { + get => GetProperty(); + set => SetProperty(value); + } + + public long FileSize + { + get => GetProperty(); + set => SetProperty(value); + } + + public Guid ZuneMediaId + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/PodcastEpisode.cs b/ZuneImpl/Schemas/PodcastEpisode.cs new file mode 100644 index 0000000..58058aa --- /dev/null +++ b/ZuneImpl/Schemas/PodcastEpisode.cs @@ -0,0 +1,84 @@ +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class PodcastEpisode : SubscriptionEpisode +{ + public PodcastEpisode(MarkupTypeSchema schema) : base(schema) + { + } + + public bool Explicit + { + get => GetProperty(); + set => SetProperty(value); + } + + public string SeriesHomeUrl + { + get => GetProperty(); + set => SetProperty(value); + } + + public int PlayedStatus + { + get => GetProperty(); + set => SetProperty(value); + } + + public long Bookmark + { + get => GetProperty(); + set => SetProperty(value); + } + + public long FileSize + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FileName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FolderName + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Bitrate + { + get => GetProperty(); + set => SetProperty(value); + } + + public string MediaType + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ArtUrl + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateLastPlayed + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAdded + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/PodcastSeries.cs b/ZuneImpl/Schemas/PodcastSeries.cs new file mode 100644 index 0000000..0ddf799 --- /dev/null +++ b/ZuneImpl/Schemas/PodcastSeries.cs @@ -0,0 +1,47 @@ +using Microsoft.Iris.Markup; + +namespace Microsoft.Zune.Schemas; + +public class PodcastSeries : SubscriptionSeries +{ + public PodcastSeries(MarkupTypeSchema schema) : base(schema) + { + } + + public string HomeUrl + { + get => GetProperty(); + set => SetProperty(value); + } + + public bool Explicit + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Copyright + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Author + { + get => GetProperty(); + set => SetProperty(value); + } + + public string OwnerName + { + get => GetProperty(); + set => SetProperty(value); + } + + public bool HasUnplayedItems + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/RankedArtist.cs b/ZuneImpl/Schemas/RankedArtist.cs new file mode 100644 index 0000000..098255d --- /dev/null +++ b/ZuneImpl/Schemas/RankedArtist.cs @@ -0,0 +1,17 @@ +using Microsoft.Iris.Markup; + +namespace Microsoft.Zune.Schemas; + +public class RankedArtist : Artist +{ + public RankedArtist(MarkupTypeSchema schema) : base(schema) + { + } + + public int GenreId + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/RateableMedia.cs b/ZuneImpl/Schemas/RateableMedia.cs new file mode 100644 index 0000000..262b64d --- /dev/null +++ b/ZuneImpl/Schemas/RateableMedia.cs @@ -0,0 +1,17 @@ +using Microsoft.Iris.Markup; + +namespace Microsoft.Zune.Schemas; + +public class RateableMedia : Media +{ + public RateableMedia(MarkupTypeSchema schema) : base(schema) + { + } + + public int UserRating + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/SubscriptionEpisode.cs b/ZuneImpl/Schemas/SubscriptionEpisode.cs new file mode 100644 index 0000000..c69c392 --- /dev/null +++ b/ZuneImpl/Schemas/SubscriptionEpisode.cs @@ -0,0 +1,90 @@ +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class SubscriptionEpisode : Media +{ + public SubscriptionEpisode(MarkupTypeSchema schema) : base(schema) + { + } + + public string Description + { + get => GetProperty(); + set => SetProperty(value); + } + + public TimeSpan Duration + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime ReleaseDate + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Author + { + get => GetProperty(); + set => SetProperty(value); + } + + public string SourceUrl + { + get => GetProperty(); + set => SetProperty(value); + } + + public string EnclosureUrl + { + get => GetProperty(); + set => SetProperty(value); + } + + public int EpisodeMediaType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int DownloadType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int DownloadState + { + get => GetProperty(); + set => SetProperty(value); + } + + public int DownloadErrorCode + { + get => GetProperty(); + set => SetProperty(value); + } + + public int SeriesId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string SeriesTitle + { + get => GetProperty(); + set => SetProperty(value); + } + + public string SeriesFeedUrl + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/SubscriptionSeries.cs b/ZuneImpl/Schemas/SubscriptionSeries.cs new file mode 100644 index 0000000..7c5ca67 --- /dev/null +++ b/ZuneImpl/Schemas/SubscriptionSeries.cs @@ -0,0 +1,54 @@ +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class SubscriptionSeries : Media +{ + public SubscriptionSeries(MarkupTypeSchema schema) : base(schema) + { + } + + public string ArtUrl + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Description + { + get => GetProperty(); + set => SetProperty(value); + } + + public int SeriesState + { + get => GetProperty(); + set => SetProperty(value); + } + + public int ErrorCode + { + get => GetProperty(); + set => SetProperty(value); + } + + public int NumberOfEpisodes + { + get => GetProperty(); + set => SetProperty(value); + } + + public Guid ZuneMediaId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FeedUrl + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/SyncItem.cs b/ZuneImpl/Schemas/SyncItem.cs new file mode 100644 index 0000000..8352562 --- /dev/null +++ b/ZuneImpl/Schemas/SyncItem.cs @@ -0,0 +1,90 @@ +using Microsoft.Iris.Markup; +using System; + +namespace Microsoft.Zune.Schemas; + +public class SyncItem : MarkupDataType +{ + public SyncItem(MarkupTypeSchema schema) : base(schema) + { + } + + public int LibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int MediaType + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Title + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ArtistName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string AlbumName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Folder + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Series + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAdded + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateTaken + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Error + { + get => GetProperty(); + set => SetProperty(value); + } + + public int MappedError + { + get => GetProperty(); + set => SetProperty(value); + } + + public TimeSpan Duration + { + get => GetProperty(); + set => SetProperty(value); + } + + public int PlaylistType + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/Track.cs b/ZuneImpl/Schemas/Track.cs new file mode 100644 index 0000000..391394f --- /dev/null +++ b/ZuneImpl/Schemas/Track.cs @@ -0,0 +1,229 @@ +using Microsoft.Iris.Markup; +using System; +using System.Collections; + +namespace Microsoft.Zune.Schemas; + +public class Track : RateableMedia +{ + public Track(MarkupTypeSchema schema) : base(schema) + { + } + + public int AlbumLibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int ArtistLibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int AlbumArtistLibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ArtistName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ArtistNameYomi + { + get => GetProperty(); + set => SetProperty(value); + } + + public string TitleYomi + { + get => GetProperty(); + set => SetProperty(value); + } + + public IList ContributingArtistNames + { + get => GetProperty(); + set => SetProperty(value); + } + + public string AlbumArtistName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string AlbumName + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime ReleaseDate + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Genre + { + get => GetProperty(); + set => SetProperty(value); + } + + public Guid ZuneMediaId + { + get => GetProperty(); + set => SetProperty(value); + } + + public int TrackNumber + { + get => GetProperty(); + set => SetProperty(value); + } + + public TimeSpan Duration + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ComponentId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FileName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FolderName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FilePath + { + get => GetProperty(); + set => SetProperty(value); + } + + public bool NowPlaying + { + get => GetProperty(); + set => SetProperty(value); + } + + public bool InLibrary + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateLastPlayed + { + get => GetProperty(); + set => SetProperty(value); + } + + public int PlayCount + { + get => GetProperty(); + set => SetProperty(value); + } + + public long FileSize + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ComposerName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ConductorName + { + get => GetProperty(); + set => SetProperty(value); + } + + public int IsProtected + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAdded + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Bitrate + { + get => GetProperty(); + set => SetProperty(value); + } + + public string MediaType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int DiscNumber + { + get => GetProperty(); + set => SetProperty(value); + } + + public int ContributingArtistCount + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAlbumAdded + { + get => GetProperty(); + set => SetProperty(value); + } + + public long FileCount + { + get => GetProperty(); + set => SetProperty(value); + } + + public int DrmState + { + get => GetProperty(); + set => SetProperty(value); + } + + public long DrmStateMask + { + get => GetProperty(); + set => SetProperty(value); + } + + public int QuickMixState + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file diff --git a/ZuneImpl/Schemas/Video.cs b/ZuneImpl/Schemas/Video.cs new file mode 100644 index 0000000..2eb7927 --- /dev/null +++ b/ZuneImpl/Schemas/Video.cs @@ -0,0 +1,212 @@ +using Microsoft.Iris.Drawing; +using Microsoft.Iris.Markup; +using System; +using System.Collections; + +namespace Microsoft.Zune.Schemas; + +public class Video : RateableMedia +{ + public Video(MarkupTypeSchema schema) : base(schema) + { + } + + public string Description + { + get => GetProperty(); + set => SetProperty(value); + } + + public TimeSpan Duration + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateAdded + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime ReleaseDate + { + get => GetProperty(); + set => SetProperty(value); + } + + public bool Explicit + { + get => GetProperty(); + set => SetProperty(value); + } + + public UIImage Thumbnail + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FileName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FolderName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string FilePath + { + get => GetProperty(); + set => SetProperty(value); + } + + public int FileType + { + get => GetProperty(); + set => SetProperty(value); + } + + public int ArtistLibraryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ArtistName + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ArtistNameYomi + { + get => GetProperty(); + set => SetProperty(value); + } + + public string TitleYomi + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Width + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Height + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Definition + { + get => GetProperty(); + set => SetProperty(value); + } + + public int Bitrate + { + get => GetProperty(); + set => SetProperty(value); + } + + public string MediaType + { + get => GetProperty(); + set => SetProperty(value); + } + + public long FileSize + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ProductionCompany + { + get => GetProperty(); + set => SetProperty(value); + } + + public IList DirectorNames + { + get => GetProperty(); + set => SetProperty(value); + } + + public IList ActorNames + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Network + { + get => GetProperty(); + set => SetProperty(value); + } + + public string SeriesTitle + { + get => GetProperty(); + set => SetProperty(value); + } + + public int SeasonNumber + { + get => GetProperty(); + set => SetProperty(value); + } + + public int EpisodeNumber + { + get => GetProperty(); + set => SetProperty(value); + } + + public string Genre + { + get => GetProperty(); + set => SetProperty(value); + } + + public int CategoryId + { + get => GetProperty(); + set => SetProperty(value); + } + + public string ParentalRating + { + get => GetProperty(); + set => SetProperty(value); + } + + public Guid ZuneMediaId + { + get => GetProperty(); + set => SetProperty(value); + } + + public DateTime DateLastPlayed + { + get => GetProperty(); + set => SetProperty(value); + } + + public int DrmState + { + get => GetProperty(); + set => SetProperty(value); + } + +} \ No newline at end of file