namespace RuriLib.ViewModels
{
///
/// The level of detail of a bot's status.
///
public enum BotsDisplayMode
{
/// No information is displayed.
None,
/// Every information is displayed.
Everything,
/// Only information about the end result is displayed.
EndResultOnly
}
///
/// Provides settings for general purposes.
///
public class SettingsGeneral : ViewModelBase
{
private int _waitTime = 100;
/// The amount of time the Bot needs to wait after completing a check, in milliseconds.
public int WaitTime { get { return _waitTime; } set { _waitTime = value; OnPropertyChanged(); } }
private int _requestsTimeout = 10;
/// The maximum amount of time to wait for a response from the server for any HTTP request, in seconds.
public int RequestTimeout { get { return _requestsTimeout; } set { _requestsTimeout = value; OnPropertyChanged(); } }
private int _maxHits = 0;
/// The maximum number of hits before the Runner automatically stops (0 for infinite).
public int MaxHits { get { return _maxHits; } set { _maxHits = value; OnPropertyChanged(); } }
private BotsDisplayMode _botsDisplayMode = BotsDisplayMode.Everything;
/// The rate and detail of information to display in the Bot Status column.
public BotsDisplayMode BotsDisplayMode { get { return _botsDisplayMode; } set { _botsDisplayMode = value; OnPropertyChanged(); } }
private bool _enableBotLog = false;
/// Whether to keep the LogBuffer from BotData stored for future use (slows down the Runner).
public bool EnableBotLog { get { return _enableBotLog; } set { _enableBotLog = value; OnPropertyChanged(); } }
}
}