mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-23 10:22:03 +08:00
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using System.Application.Columns;
|
|
using System.Application.Models;
|
|
using System.Net.Http;
|
|
using System.Security.Cryptography;
|
|
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();
|
|
|
|
RSA RSA { get; }
|
|
}
|
|
} |