aboutsummaryrefslogblamecommitdiff
path: root/src/Ryujinx.Ui.Common/App/ApplicationMetadata.cs
blob: 0abd4680daa60decc7bc978c6c12f72e1248bb7d (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                     

                                    
                                         
                                              





                                                                        
     
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; }
    }
}