兼容win7版应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
550 B

using AIK.Models.SystemSettings;
using System;
using System.Threading.Tasks;
namespace AIK.Service.IService;
public interface IUserSessionCoordinator
{
event EventHandler<UserSessionStateChangedEventArgs>? StateChanged;
Task InitializeAsync();
Task LogoutAsync();
Task RefreshQrCodeAsync();
Task RefreshIntegralAsync();
/// <summary>账密登录成功后写入会话(保存 Token、拉取用户信息与积分并发布登录状态),返回是否成功。</summary>
Task<bool> LoginWithTokenAsync(string token);
}