locationpresence.cs

来自「破解的飞信源代码」· CS 代码 · 共 58 行

CS
58
字号
namespace Imps.Client.Core
{
    using Imps.Utils;
    using System;
    using System.Xml;

    public class LocationPresence
    {
        private string _city;
        private string _distance;

        public LocationPresence()
        {
        }

        public LocationPresence(string city, string distance)
        {
            this._city = city;
            this._distance = distance;
        }

        public void LoadXmlNode(XmlNode node)
        {
            node = node.SelectSingleNode("location");
            if (node != null)
            {
                this._city = XmlHelper.ReadXmlAttributeString(node, "city");
                this._distance = XmlHelper.ReadXmlAttributeString(node, "distance");
            }
        }

        public string City
        {
            get
            {
                return this._city;
            }
            set
            {
                this._city = value;
            }
        }

        public string Distance
        {
            get
            {
                return this._distance;
            }
            set
            {
                this._distance = value;
            }
        }
    }
}

⌨️ 快捷键说明

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