Skip to content

Commit 2c81a19

Browse files
committed
ProtocolGenerator: make the XxxProperties properties required. Generate property enums and use those for the XxxProperties method that check set/invalidated.
1 parent fb420d3 commit 2c81a19

File tree

3 files changed

+2726
-2400
lines changed

3 files changed

+2726
-2400
lines changed

examples/MediaPlayerRemote/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ async void OnPropertiesChanged(Exception? ex, PlayerProperties properties)
106106
try
107107
{
108108
Dictionary<string, VariantValue>? metadata = null;
109-
if (properties.IsSet(nameof(PlayerProperties.Metadata)))
109+
if (properties.IsSet(PlayerProperty.Metadata))
110110
{
111111
metadata = properties.Metadata;
112112
}
113-
else if (properties.IsInvalidated(nameof(PlayerProperties.Metadata)))
113+
else if (properties.IsInvalidated(PlayerProperty.Metadata))
114114
{
115115
metadata = await _player.GetMetadataAsync();
116116
}

0 commit comments

Comments
 (0)