add ISteamService.SetCurrentUser

This commit is contained in:
Aigio Liu
2021-03-05 09:52:17 +08:00
parent 2f8a426bd7
commit 60b515b86b
14 changed files with 165 additions and 44 deletions
@@ -119,6 +119,9 @@ namespace System.Application.Services
/// <inheritdoc cref="ISteamService.GetLastLoginUserName"/>
string GetLastSteamLoginUserName();
/// <inheritdoc cref="ISteamService.SetCurrentUser(string)"/>
void SetCurrentUser(string userName);
#endregion
public const ResizeMode ResizeMode_NoResize = 0;
@@ -56,6 +56,12 @@ namespace System.Application.Services
/// <returns></returns>
List<SteamUser> GetRememberUserList();
/// <summary>
/// 设置下次登陆 Steam 用户
/// </summary>
/// <param name="userName"></param>
void SetCurrentUser(string userName);
List<SteamApp>? GetAppListJson(string filePath);
bool UpdateAppListJson(List<SteamApp> apps, string filePath);
@@ -146,6 +146,8 @@ namespace System.Application.Services.Implementation
return users;
}
public string SetCurrentUser(string userName) => platformService.SetCurrentUser(userName);
public List<SteamApp>? GetAppListJson(string filePath)
{
if (!File.Exists(filePath))