forked from siteserver/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputInfoExtend.cs
More file actions
51 lines (44 loc) · 1.65 KB
/
InputInfoExtend.cs
File metadata and controls
51 lines (44 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using BaiRong.Core;
using BaiRong.Core.Model;
namespace SiteServer.CMS.Model
{
public class InputInfoExtend : ExtendedAttributes
{
public InputInfoExtend(string settingsXml)
{
var nameValueCollection = TranslateUtils.ToNameValueCollection(settingsXml);
SetExtendedAttribute(nameValueCollection);
}
//允许匿名评论
public bool IsAnomynous
{
get { return GetBool("IsAnomynous", true); }
set { SetExtendedAttribute("IsAnomynous", value.ToString()); }
}
//向管理员发送短信通知
public bool IsAdministratorSmsNotify
{
get { return GetBool("IsAdministratorSmsNotify", false); }
set { SetExtendedAttribute("IsAdministratorSmsNotify", value.ToString()); }
}
public string AdministratorSmsNotifyTplId
{
get { return GetString("AdministratorSmsNotifyTplId", string.Empty); }
set { SetExtendedAttribute("AdministratorSmsNotifyTplId", value); }
}
public string AdministratorSmsNotifyKeys
{
get { return GetString("AdministratorSmsNotifyKeys", string.Empty); }
set { SetExtendedAttribute("AdministratorSmsNotifyKeys", value); }
}
public string AdministratorSmsNotifyMobile
{
get { return GetString("AdministratorSmsNotifyMobile", string.Empty); }
set { SetExtendedAttribute("AdministratorSmsNotifyMobile", value); }
}
public override string ToString()
{
return TranslateUtils.NameValueCollectionToString(Attributes);
}
}
}