upd Authentification

This commit is contained in:
Daria
2021-10-20 06:09:18 +03:00
parent eab3081ec2
commit 72069508d2
24 changed files with 457 additions and 191 deletions

View File

@@ -72,5 +72,96 @@ namespace SvetoforVKBot.App_Start
this["groupdialoglink"] = value;
}
}
[ConfigurationProperty("host", IsRequired = true, DefaultValue = "")]
public string Host
{
get
{
return (string)this["host"];
}
set
{
this["host"] = value;
}
}
[ConfigurationProperty("port", IsRequired = true, DefaultValue = "0")]
public int Port
{
get
{
return (int)this["port"];
}
set
{
this["port"] = value;
}
}
[ConfigurationProperty("userName", IsRequired = true, DefaultValue = "")]
public string UserName
{
get
{
return (string)this["userName"];
}
set
{
this["userName"] = value;
}
}
[ConfigurationProperty("password", IsRequired = true, DefaultValue = "")]
public string Password
{
get
{
return (string)this["password"];
}
set
{
this["password"] = value;
}
}
[ConfigurationProperty("sso", IsRequired = true, DefaultValue = "1")]
public int SSO
{
get
{
return (int)this["sso"];
}
set
{
this["sso"] = value;
}
}
[ConfigurationProperty("email", IsRequired = true, DefaultValue = "")]
public string Email
{
get
{
return (string)this["email"];
}
set
{
this["email"] = value;
}
}
[ConfigurationProperty("fromName", IsRequired = true, DefaultValue = "")]
public string FromName
{
get
{
return (string)this["fromName"];
}
set
{
this["fromName"] = value;
}
}
}
}