コード例 #1
0
ファイル: TAccountInfo.cs プロジェクト: riahtu/IceWarp.Net
 /// <inheritdoc />
 public TAccountInfo(XmlNode node)
 {
     if (node != null)
     {
         Name        = Extensions.GetNodeInnerText(node.GetSingleNode(ClassHelper.GetMemberName(() => Name)));
         Email       = Extensions.GetNodeInnerText(node.GetSingleNode(ClassHelper.GetMemberName(() => Email)));
         AccountType = (AccountType)Extensions.GetNodeInnerTextAsInt(node.GetSingleNode(ClassHelper.GetMemberName(() => AccountType)));
         AdminType   = (TAdminType)Extensions.GetNodeInnerTextAsInt(node.GetSingleNode(ClassHelper.GetMemberName(() => AdminType)));
         Quota       = new TAccountQuota(node.GetSingleNode(ClassHelper.GetMemberName(() => Quota)));
         Image       = new TAccountImage(node.GetSingleNode(ClassHelper.GetMemberName(() => Image)));
     }
 }
コード例 #2
0
ファイル: TAccountInfo.cs プロジェクト: riahtu/IceWarp.Net
 /// <inheritdoc />
 public TAccountInfo()
 {
     Quota = new TAccountQuota();
     Image = new TAccountImage();
 }