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