mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-11 05:09:12 +00:00
531da8a1c0
* Changed LastPlayed field from string to nullable DateTime Added ApplicationData.LastPlayedString property Added NullableDateTimeConverter for the DateTime->string conversion in Avalonia * Added migration from string-based last_played to DateTime-based last_played_utc * Updated comment style * Added MarkupExtension to NullableDateTimeConverter and changed its usage Cleaned up leftover usings * Missed one comment
19 lines
No EOL
547 B
C#
19 lines
No EOL
547 B
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Ryujinx.Ui.App.Common
|
|
{
|
|
public class ApplicationMetadata
|
|
{
|
|
public string Title { get; set; }
|
|
public bool Favorite { get; set; }
|
|
public double TimePlayed { get; set; }
|
|
|
|
[JsonPropertyName("last_played_utc")]
|
|
public DateTime? LastPlayed { get; set; } = null;
|
|
|
|
[JsonPropertyName("last_played")]
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
|
public string LastPlayedOld { get; set; }
|
|
}
|
|
} |