lampac/Shared/Models/Online/Settings/KodikSettings.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

42 lines
1.2 KiB
C#

using Shared.Models.Base;
namespace Shared.Models.Online.Settings
{
public class KodikSettings : BaseSettings, ICloneable
{
public KodikSettings(string plugin, string apihost, string linkhost, string token, string secret_token, bool localip, bool enable = true, bool hls = true, bool streamproxy = false)
{
this.plugin = plugin;
this.secret_token = secret_token;
this.localip = localip;
this.enable = enable;
this.hls = hls;
this.streamproxy = streamproxy;
this.linkhost = linkhost.StartsWith("http") ? linkhost : Decrypt(linkhost)!;
this.apihost = apihost.StartsWith("http") ? apihost : Decrypt(apihost);
this.token = token.Contains(":") ? Decrypt(token)! : token;
}
public bool auto_proxy { get; set; }
public bool cdn_is_working { get; set; }
public string secret_token { get; set; }
public string linkhost { get; set; }
public bool localip { get; set; }
public KodikSettings Clone()
{
return (KodikSettings)MemberwiseClone();
}
object ICloneable.Clone()
{
return MemberwiseClone();
}
}
}