Usaboility tweaks

This commit is contained in:
Garry Newman 2019-04-29 16:34:35 +01:00
parent b39ee80ecd
commit f129ff7cac
2 changed files with 10 additions and 2 deletions

View File

@ -39,7 +39,7 @@ internal static void InstallEvents()
/// <summary>
/// posted after the user gains ownership of DLC and that DLC is installed
/// </summary>
public static event Action< AppId > OnDlcInstalled;
public static event Action<AppId> OnDlcInstalled;
/// <summary>
/// posted after the user gains executes a Steam URL with command line or query parameters
@ -100,7 +100,13 @@ internal static void InstallEvents()
/// <summary>
/// Returns the time of the purchase of the app
/// </summary>
public static DateTime PurchaseTime( AppId appid ) => Epoch.ToDateTime( Internal.GetEarliestPurchaseUnixTime( appid.Value ) );
public static DateTime PurchaseTime( AppId appid = default )
{
if ( appid == 0 )
appid = SteamClient.AppId;
return Epoch.ToDateTime(Internal.GetEarliestPurchaseUnixTime(appid.Value ) );
}
/// <summary>
/// Checks if the user is subscribed to the current app through a free weekend

View File

@ -24,5 +24,7 @@ public static implicit operator uint( DepotId value )
{
return value.Value;
}
public override string ToString() => Value.ToString();
}
}