Add generated classes for known UIX schemas

This commit is contained in:
Yoshi Askharoun
2023-05-21 18:47:35 -05:00
parent 5e8abc93f0
commit e228639d1f
19 changed files with 1501 additions and 0 deletions
+103
View File
@@ -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<int>();
set => SetProperty(value);
}
public string ArtistName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public Guid ZuneMediaId
{
get => GetProperty<Guid>();
set => SetProperty(value);
}
public bool HasAlbumArt
{
get => GetProperty<bool>();
set => SetProperty(value);
}
public UIImage AlbumArtSmall
{
get => GetProperty<UIImage>();
set => SetProperty(value);
}
public UIImage AlbumArtLarge
{
get => GetProperty<UIImage>();
set => SetProperty(value);
}
public UIImage AlbumArtSuperLarge
{
get => GetProperty<UIImage>();
set => SetProperty(value);
}
public string ThumbnailPath
{
get => GetProperty<string>();
set => SetProperty(value);
}
public DateTime ReleaseDate
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public DateTime DateAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public int ContributingArtistCount
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int DisplayArtistCount
{
get => GetProperty<int>();
set => SetProperty(value);
}
public DateTime DateLastPlayed
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public long DrmStateMask
{
get => GetProperty<long>();
set => SetProperty(value);
}
public int QuickMixState
{
get => GetProperty<int>();
set => SetProperty(value);
}
}
+103
View File
@@ -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<UIImage>();
set => SetProperty(value);
}
public int CategoryId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public Guid ZuneMediaId
{
get => GetProperty<Guid>();
set => SetProperty(value);
}
public string Description
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string Version
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string Author
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string Genre
{
get => GetProperty<string>();
set => SetProperty(value);
}
public DateTime DateAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public DateTime ReleaseDate
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public string ParentalRating
{
get => GetProperty<string>();
set => SetProperty(value);
}
public DateTime DateModified
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public string FileName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string FolderName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string FilePath
{
get => GetProperty<string>();
set => SetProperty(value);
}
public long FileSize
{
get => GetProperty<long>();
set => SetProperty(value);
}
}
+49
View File
@@ -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<Guid>();
set => SetProperty(value);
}
public int NumberOfAlbums
{
get => GetProperty<int>();
set => SetProperty(value);
}
public DateTime DateLastPlayed
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public long DrmStateMask
{
get => GetProperty<long>();
set => SetProperty(value);
}
public int QuickMixState
{
get => GetProperty<int>();
set => SetProperty(value);
}
public UIImage Image
{
get => GetProperty<UIImage>();
set => SetProperty(value);
}
}
+19
View File
@@ -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<DateTime>();
set => SetProperty(value);
}
}
+21
View File
@@ -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>(T value, [CallerMemberName] string name = "") => _item.SetProperty(name, value);
protected T GetProperty<T>([CallerMemberName] string name = "") => (T)_item.GetProperty(name);
}
+47
View File
@@ -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<int>();
set => SetProperty(value);
}
public string Title
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int SyncState
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string Type
{
get => GetProperty<string>();
set => SetProperty(value);
}
public long DeviceFileSize
{
get => GetProperty<long>();
set => SetProperty(value);
}
public string Copyright
{
get => GetProperty<string>();
set => SetProperty(value);
}
}
+61
View File
@@ -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<int>();
set => SetProperty(value);
}
public string FolderPath
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int Count
{
get => GetProperty<int>();
set => SetProperty(value);
}
public bool HasChildFolders
{
get => GetProperty<bool>();
set => SetProperty(value);
}
public int TotalCount
{
get => GetProperty<int>();
set => SetProperty(value);
}
public UIImage Thumbnail
{
get => GetProperty<UIImage>();
set => SetProperty(value);
}
public DateTime LastPlayed
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public DateTime DateAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
}
+72
View File
@@ -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<int>();
set => SetProperty(value);
}
public int PinType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int Ordinal
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string Description
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int MediaId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int MediaType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string ZuneMediaRef
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int ZuneMediaType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int UserId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public DateTime DateModified
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
}
+108
View File
@@ -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<int>();
set => SetProperty(value);
}
public int Count
{
get => GetProperty<int>();
set => SetProperty(value);
}
public TimeSpan TotalTime
{
get => GetProperty<TimeSpan>();
set => SetProperty(value);
}
public int Status
{
get => GetProperty<int>();
set => SetProperty(value);
}
public DateTime ReleaseDate
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public DateTime DateAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public DateTime DateLastPlayed
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public string PublishInterval
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string Genre
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string Category
{
get => GetProperty<string>();
set => SetProperty(value);
}
public long MaxChannelSize
{
get => GetProperty<long>();
set => SetProperty(value);
}
public bool AutoRefresh
{
get => GetProperty<bool>();
set => SetProperty(value);
}
public int AutoRefreshFreq
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int LimitType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int LimitValue
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int SubType
{
get => GetProperty<int>();
set => SetProperty(value);
}
}
+78
View File
@@ -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<int>();
set => SetProperty(value);
}
public int MediaType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int Ordinal
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string ArtistName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string AlbumName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int AlbumLibraryId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int AlbumArtistLibraryId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string FilePath
{
get => GetProperty<string>();
set => SetProperty(value);
}
public TimeSpan Duration
{
get => GetProperty<TimeSpan>();
set => SetProperty(value);
}
public long FileSize
{
get => GetProperty<long>();
set => SetProperty(value);
}
public Guid ZuneMediaId
{
get => GetProperty<Guid>();
set => SetProperty(value);
}
}
+84
View File
@@ -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<bool>();
set => SetProperty(value);
}
public string SeriesHomeUrl
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int PlayedStatus
{
get => GetProperty<int>();
set => SetProperty(value);
}
public long Bookmark
{
get => GetProperty<long>();
set => SetProperty(value);
}
public long FileSize
{
get => GetProperty<long>();
set => SetProperty(value);
}
public string FileName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string FolderName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int Bitrate
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string MediaType
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string ArtUrl
{
get => GetProperty<string>();
set => SetProperty(value);
}
public DateTime DateLastPlayed
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public DateTime DateAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
}
+47
View File
@@ -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<string>();
set => SetProperty(value);
}
public bool Explicit
{
get => GetProperty<bool>();
set => SetProperty(value);
}
public string Copyright
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string Author
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string OwnerName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public bool HasUnplayedItems
{
get => GetProperty<bool>();
set => SetProperty(value);
}
}
+17
View File
@@ -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<int>();
set => SetProperty(value);
}
}
+17
View File
@@ -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<int>();
set => SetProperty(value);
}
}
+90
View File
@@ -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<string>();
set => SetProperty(value);
}
public TimeSpan Duration
{
get => GetProperty<TimeSpan>();
set => SetProperty(value);
}
public DateTime ReleaseDate
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public string Author
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string SourceUrl
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string EnclosureUrl
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int EpisodeMediaType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int DownloadType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int DownloadState
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int DownloadErrorCode
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int SeriesId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string SeriesTitle
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string SeriesFeedUrl
{
get => GetProperty<string>();
set => SetProperty(value);
}
}
+54
View File
@@ -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<string>();
set => SetProperty(value);
}
public string Description
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int SeriesState
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int ErrorCode
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int NumberOfEpisodes
{
get => GetProperty<int>();
set => SetProperty(value);
}
public Guid ZuneMediaId
{
get => GetProperty<Guid>();
set => SetProperty(value);
}
public string FeedUrl
{
get => GetProperty<string>();
set => SetProperty(value);
}
}
+90
View File
@@ -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<int>();
set => SetProperty(value);
}
public int MediaType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string Title
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string ArtistName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string AlbumName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string Folder
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string Series
{
get => GetProperty<string>();
set => SetProperty(value);
}
public DateTime DateAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public DateTime DateTaken
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public int Error
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int MappedError
{
get => GetProperty<int>();
set => SetProperty(value);
}
public TimeSpan Duration
{
get => GetProperty<TimeSpan>();
set => SetProperty(value);
}
public int PlaylistType
{
get => GetProperty<int>();
set => SetProperty(value);
}
}
+229
View File
@@ -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<int>();
set => SetProperty(value);
}
public int ArtistLibraryId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int AlbumArtistLibraryId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string ArtistName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string ArtistNameYomi
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string TitleYomi
{
get => GetProperty<string>();
set => SetProperty(value);
}
public IList ContributingArtistNames
{
get => GetProperty<IList>();
set => SetProperty(value);
}
public string AlbumArtistName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string AlbumName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public DateTime ReleaseDate
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public string Genre
{
get => GetProperty<string>();
set => SetProperty(value);
}
public Guid ZuneMediaId
{
get => GetProperty<Guid>();
set => SetProperty(value);
}
public int TrackNumber
{
get => GetProperty<int>();
set => SetProperty(value);
}
public TimeSpan Duration
{
get => GetProperty<TimeSpan>();
set => SetProperty(value);
}
public string ComponentId
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string FileName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string FolderName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string FilePath
{
get => GetProperty<string>();
set => SetProperty(value);
}
public bool NowPlaying
{
get => GetProperty<bool>();
set => SetProperty(value);
}
public bool InLibrary
{
get => GetProperty<bool>();
set => SetProperty(value);
}
public DateTime DateLastPlayed
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public int PlayCount
{
get => GetProperty<int>();
set => SetProperty(value);
}
public long FileSize
{
get => GetProperty<long>();
set => SetProperty(value);
}
public string ComposerName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string ConductorName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int IsProtected
{
get => GetProperty<int>();
set => SetProperty(value);
}
public DateTime DateAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public int Bitrate
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string MediaType
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int DiscNumber
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int ContributingArtistCount
{
get => GetProperty<int>();
set => SetProperty(value);
}
public DateTime DateAlbumAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public long FileCount
{
get => GetProperty<long>();
set => SetProperty(value);
}
public int DrmState
{
get => GetProperty<int>();
set => SetProperty(value);
}
public long DrmStateMask
{
get => GetProperty<long>();
set => SetProperty(value);
}
public int QuickMixState
{
get => GetProperty<int>();
set => SetProperty(value);
}
}
+212
View File
@@ -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<string>();
set => SetProperty(value);
}
public TimeSpan Duration
{
get => GetProperty<TimeSpan>();
set => SetProperty(value);
}
public DateTime DateAdded
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public DateTime ReleaseDate
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public bool Explicit
{
get => GetProperty<bool>();
set => SetProperty(value);
}
public UIImage Thumbnail
{
get => GetProperty<UIImage>();
set => SetProperty(value);
}
public string FileName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string FolderName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string FilePath
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int FileType
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int ArtistLibraryId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string ArtistName
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string ArtistNameYomi
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string TitleYomi
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int Width
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int Height
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int Definition
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int Bitrate
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string MediaType
{
get => GetProperty<string>();
set => SetProperty(value);
}
public long FileSize
{
get => GetProperty<long>();
set => SetProperty(value);
}
public string ProductionCompany
{
get => GetProperty<string>();
set => SetProperty(value);
}
public IList DirectorNames
{
get => GetProperty<IList>();
set => SetProperty(value);
}
public IList ActorNames
{
get => GetProperty<IList>();
set => SetProperty(value);
}
public string Network
{
get => GetProperty<string>();
set => SetProperty(value);
}
public string SeriesTitle
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int SeasonNumber
{
get => GetProperty<int>();
set => SetProperty(value);
}
public int EpisodeNumber
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string Genre
{
get => GetProperty<string>();
set => SetProperty(value);
}
public int CategoryId
{
get => GetProperty<int>();
set => SetProperty(value);
}
public string ParentalRating
{
get => GetProperty<string>();
set => SetProperty(value);
}
public Guid ZuneMediaId
{
get => GetProperty<Guid>();
set => SetProperty(value);
}
public DateTime DateLastPlayed
{
get => GetProperty<DateTime>();
set => SetProperty(value);
}
public int DrmState
{
get => GetProperty<int>();
set => SetProperty(value);
}
}