Files
SteamTools/System.Application.SteamTools.Services.CloudService/Services/CloudService/IApiConnectionPlatformHelper.cs
T
Aigio Liu a85f977ccf 更新Linux截图
HttpClient 统一到 HttpClientFactory
2021-02-23 12:05:30 +08:00

37 lines
979 B
C#

using System.Application.Columns;
using System.Application.Models;
using System.Net.Http;
using System.Threading.Tasks;
namespace System.Application.Services.CloudService
{
public interface IApiConnectionPlatformHelper
{
#region Authentication
IAuthHelper Auth { get; }
/// <summary>
/// 保存用户登录凭证
/// </summary>
/// <param name="authToken"></param>
Task SaveAuthTokenAsync(string authToken);
/// <summary>
/// 当登录完成时
/// </summary>
/// <param name="phoneNumber"></param>
/// <param name="response"></param>
Task OnLoginedAsync(IReadOnlyPhoneNumber? phoneNumber, ILoginResponse response);
#endregion
/// <summary>
/// 显示响应错误消息
/// </summary>
/// <param name="message"></param>
void ShowResponseErrorMessage(string message);
HttpClient CreateClient();
}
}