info.cs

来自「instant messenger~~~~~~~~~~~」· CS 代码 · 共 72 行

CS
72
字号
using System;
using System.Collections.Generic;
using System.Text;

using agsXMPP.Xml.Dom;
namespace server
{
    /************************************************************
     * 2007-05-18   牛坤
     * 该类向服务器请求成员的详细资料信息  所有信息按照数据库中类型
     * 以后最好要保存到本地
     ***********************************************************/
    public class Info : Element
    {
         public Info()
         {
             this.TagName = "Info";
             this.Namespace = "agsoftware:Info";
         }
        public Info(string name,string  pwd,string sex,int age,string group,string tel,string email):this()
        {
            this.Name = name;
            this.Sex = sex;
            this.Age = age;
            this.Group = group;
            this.Tel = tel;
            this.Email = email;
            this.Pwd = pwd;
        }
        public string Name
        {
            get { return GetTag("name"); }
            set { SetTag("name",value); }
        }
        public string Pwd
        {
            get { return GetTag("pwd"); }
            set { SetTag("pwd", value); }
        }
        public int FaceId
        {
            get { return GetTagInt("faceid"); }
            set { SetTag("faceid", value.ToString()); }
        }
        public string  Sex
        {
            get { return GetTag("sex"); }
            set { SetTag("sex", value); }
        }
        public int Age
        {
            get { return GetTagInt("age"); }
            set { SetTag("age", value.ToString()); }
        }
        public string Group
        {
            get { return GetTag("group"); }
            set { SetTag("group", value); }
        }
        public string Tel
        {
            get { return GetTag("tel"); }
            set { SetTag("tel", value); }
        }
        public string Email
        {
            get { return GetTag("email"); }
            set { SetTag("email", value); }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?