using Shared.Models.Base; namespace Shared.Models.Online.Settings { public class PidTorSettings : Igroup, ICloneable { bool _enable; public bool enable { get { if (AppInit.conf.defaultOn == "enabled") return enabled; return _enable; } set { _enable = value; } } public bool enabled { get; set; } public string displayname { get; set; } public int displayindex { get; set; } public string redapi { get; set; } public string apikey { get; set; } public int min_sid { get; set; } public long max_size { get; set; } public long max_serial_size { get; set; } public bool emptyVoice { get; set; } public bool forceAll { get; set; } public string filter { get; set; } public string filter_ignore { get; set; } public string sort { get; set; } public PidTorAuthTS base_auth { get; set; } public string[] torrs { get; set; } public List auth_torrs { get; set; } public int group { get; set; } public bool group_hide { get; set; } = true; public PidTorSettings Clone() { return (PidTorSettings)MemberwiseClone(); } object ICloneable.Clone() { return MemberwiseClone(); } } public class PidTorAuthTS { public bool enable { get; set; } public string host { get; set; } public string login { get; set; } public string passwd { get; set; } public string country { get; set; } public string no_country { get; set; } public Dictionary headers { get; set; } } }