lampac/Shared/Models/Online/Settings/AllohaSettings.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.1 KiB
C#

using Shared.Models.Base;
namespace Shared.Models.Online.Settings
{
public class AllohaSettings : BaseSettings, ICloneable
{
public AllohaSettings(string plugin, string apihost, string linkhost, string token, string secret_token, bool localip, bool m4s)
{
this.plugin = plugin;
this.token = token;
this.secret_token = secret_token;
this.localip = localip;
this.m4s = m4s;
this.linkhost = linkhost == null ? string.Empty : (linkhost.StartsWith("http") ? linkhost : Decrypt(linkhost)!);
this.apihost = apihost == null ? string.Empty : (apihost.StartsWith("http") ? apihost : Decrypt(apihost));
}
public string secret_token { get; set; }
public string linkhost { get; set; }
public bool localip { get; set; }
public bool m4s { get; set; }
public bool reserve { get; set; }
public AllohaSettings Clone()
{
return (AllohaSettings)MemberwiseClone();
}
object ICloneable.Clone()
{
return MemberwiseClone();
}
}
}