Files
AnilistSync/Jellyfin.Plugin.Simkl/Configuration/UserConfig.cs
T
crobibero d4debbbb18 init
2020-09-08 15:10:57 -06:00

70 lines
1.9 KiB
C#

using System;
namespace Jellyfin.Plugin.Simkl.Configuration
{
/// <summary>
/// User config.
/// </summary>
public class UserConfig
{
/// <summary>
/// Initializes a new instance of the <see cref="UserConfig"/> class.
/// </summary>
public UserConfig()
{
ScrobbleMovies = true;
ScrobbleShows = true;
ScrobblePercentage = 70;
ScrobbleNowWatchingPercentage = 5;
MinLength = 5;
UserToken = string.Empty; // Todo: check if token is still valid
ScrobbleTimeout = 30;
}
/// <summary>
/// Gets or sets a value indicating whether scrobble movies.
/// </summary>
public bool ScrobbleMovies { get; set; }
/// <summary>
/// Gets or sets a value indicating whether scrobble shows.
/// </summary>
public bool ScrobbleShows { get; set; }
/// <summary>
/// Gets or sets scrobble percentage.
/// </summary>
public int ScrobblePercentage { get; set; }
/// <summary>
/// Gets or sets scrobble now watching percentage.
/// </summary>
public int ScrobbleNowWatchingPercentage { get; set; }
/// <summary>
/// Gets or sets min length.
/// </summary>
/// <remarks>
/// Minimum length for scrobbling (in minutes).
/// </remarks>
public int MinLength { get; set; }
/// <summary>
/// Gets or sets user token.
/// </summary>
public string UserToken { get; set; } // Is the user logged in
/// <summary>
/// Gets or sets scrobble timeout.
/// </summary>
/// <remarks>
/// Time between scrobbling tries.
/// </remarks>
public int ScrobbleTimeout { get; set; }
/// <summary>
/// Gets or sets user id.
/// </summary>
public Guid Id { get; set; }
}
}