2023-08-21 10:58:17 -04:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading;
|
2023-07-03 23:24:35 -04:00
|
|
|
|
using Luski.net.Enums;
|
2023-01-01 22:50:39 -05:00
|
|
|
|
using System.Threading.Tasks;
|
2023-07-03 23:24:35 -04:00
|
|
|
|
using Luski.net.JsonTypes;
|
2023-08-21 10:58:17 -04:00
|
|
|
|
using Luski.net.Structures;
|
2023-01-01 22:50:39 -05:00
|
|
|
|
|
|
|
|
|
namespace Luski.net.Interfaces;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents the curent user
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IUser
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The current Id of the user
|
|
|
|
|
/// </summary>
|
|
|
|
|
long Id { get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The cerrent username of the user
|
|
|
|
|
/// </summary>
|
2023-07-03 23:24:35 -04:00
|
|
|
|
string DisplayName { get; }
|
2023-01-01 22:50:39 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The current status of the user
|
|
|
|
|
/// </summary>
|
|
|
|
|
UserStatus Status { get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// will returen the picture type of the user
|
|
|
|
|
/// </summary>
|
|
|
|
|
PictureType PictureType { get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the current avatar of the user
|
|
|
|
|
/// </summary>
|
2023-08-21 10:58:17 -04:00
|
|
|
|
Task<Stream> GetAvatar(CancellationToken CancellationToken);
|
2023-01-01 22:50:39 -05:00
|
|
|
|
/// <summary>
|
2023-08-21 10:58:17 -04:00
|
|
|
|
/// Gets the current user keys
|
2023-01-01 22:50:39 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2023-08-21 10:58:17 -04:00
|
|
|
|
Task<PublicKeyInfo[]> GetUserKeys(CancellationToken CancellationToken);
|
2023-07-08 09:06:13 -04:00
|
|
|
|
|
2023-01-01 22:50:39 -05:00
|
|
|
|
}
|