lampac/Shared/Models/SISI/Base/SisiSettings.cs
lampac-talks f843f04fd4 chore: initial commit 154.3
Signed-off-by: lampac-talks <lampac-talks@users.noreply.github.com>
2026-01-30 16:23:09 +03:00

32 lines
926 B
C#

using Shared.Models.Base;
namespace Shared.Models.SISI.Base
{
public class SisiSettings : BaseSettings, ICloneable
{
public SisiSettings(string plugin, string host, bool enable = true, bool useproxy = false, bool streamproxy = false, string rch_access = null, string stream_access = null)
{
this.enable = enable;
this.plugin = plugin;
this.useproxy = useproxy;
this.streamproxy = streamproxy;
this.qualitys_proxy = true;
this.rch_access = rch_access;
this.stream_access = stream_access;
if (host != null)
this.host = host.StartsWith("http") ? host : Decrypt(host);
}
public SisiSettings Clone()
{
return (SisiSettings)MemberwiseClone();
}
object ICloneable.Clone()
{
return MemberwiseClone();
}
}
}