76 lines
2.1 KiB
C#
76 lines
2.1 KiB
C#
using System;
|
|
|
|
namespace Jellyfin.Plugin.AnilistSync.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;
|
|
ScrobbleRewatches = true;
|
|
ScrobblePercentage = 80;
|
|
ScrobbleNowWatchingPercentage = 5;
|
|
MinLength = 5;
|
|
UserToken = string.Empty;
|
|
ScrobbleTimeout = 30;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to scrobble movies.
|
|
/// </summary>
|
|
public bool ScrobbleMovies { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to scrobble shows.
|
|
/// </summary>
|
|
public bool ScrobbleShows { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether to scrobble rewatches.
|
|
/// </summary>
|
|
public bool ScrobbleRewatches { 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; }
|
|
|
|
/// <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; }
|
|
}
|
|
} |