namespace Dpz.Core.Public.ViewModel.Response.Steam;

/// <summary>
/// Represents the VmSteamGame type.
/// </summary>
public class SteamGameResponse
{
    /// <summary>
    /// Gets or sets Id.
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 游戏图标
    /// </summary>
    public string? ImageIcon { get; set; }

    /// <summary>
    /// 游戏logo
    /// </summary>
    public string? ImageLogo { get; set; }

    /// <summary>
    /// 游戏名称
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// 游戏时长(单位:分钟)
    /// </summary>
    public uint PlayTime { get; set; }

    /// <summary>
    /// 成就摘要
    /// </summary>
    public List<AchievementDetailResponse> Achievements { get; set; } = [];

    /// <summary>
    /// 最后更新时间
    /// </summary>
    public DateTime LastUpdateTime
    {
        get => field <= new DateTime(1970, 1, 1) ? DateTime.Now : field;
        set;
    }
}
评论加载中...