mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
55 lines
1.4 KiB
C#
55 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace Kyoo.Abstractions.Models
|
|
{
|
|
/// <summary>
|
|
/// A single user of the app.
|
|
/// </summary>
|
|
public class User : IResource, IThumbnails
|
|
{
|
|
/// <inheritdoc />
|
|
public int ID { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public string Slug { get; set; }
|
|
|
|
/// <summary>
|
|
/// A username displayed to the user.
|
|
/// </summary>
|
|
public string Username { get; set; }
|
|
|
|
/// <summary>
|
|
/// The user email address.
|
|
/// </summary>
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// The user password (hashed, it can't be read like that). The hashing format is implementation defined.
|
|
/// </summary>
|
|
public string Password { get; set; }
|
|
|
|
/// <summary>
|
|
/// The list of permissions of the user. The format of this is implementation dependent.
|
|
/// </summary>
|
|
public string[] Permissions { get; set; }
|
|
|
|
/// <summary>
|
|
/// Arbitrary extra data that can be used by specific authentication implementations.
|
|
/// </summary>
|
|
public Dictionary<string, string> ExtraData { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public Dictionary<int, string> Images { get; set; }
|
|
|
|
/// <summary>
|
|
/// The list of shows the user has finished.
|
|
/// </summary>
|
|
public ICollection<Show> Watched { get; set; }
|
|
|
|
/// <summary>
|
|
/// The list of episodes the user is watching (stopped in progress or the next episode of the show)
|
|
/// </summary>
|
|
public ICollection<WatchedEpisode> CurrentlyWatching { get; set; }
|
|
}
|
|
}
|