⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crbttobuddy.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Core
{
    using System;
    using System.Xml;

    public class CrbtToBuddy : Crbt
    {
        private int _downloadTimes;
        private double _price;
        private string _region;
        private string _toneCode;
        private string _toneInfo;
        private DateTime _toneValidDay;
        private DateTime _updateTime;
        private bool m_fExpired;

        public void TryLoadXmlNode(XmlNode node)
        {
            foreach (XmlNode node2 in node.ChildNodes)
            {
                try
                {
                    switch (node2.Name)
                    {
                        case "tone-name":
                        {
                            base.ToneName = node2.InnerXml;
                            continue;
                        }
                        case "singer":
                        {
                            base.Singer = node2.InnerXml;
                            continue;
                        }
                        case "prelisten-url":
                        {
                            base.Url = node2.InnerXml;
                            continue;
                        }
                        case "sp-name":
                        {
                            base.ServiceProvider = node2.InnerXml;
                            continue;
                        }
                        case "region":
                        {
                            this.Region = node2.InnerXml;
                            continue;
                        }
                        case "tone-code":
                        {
                            this.ToneCode = node2.InnerXml;
                            continue;
                        }
                        case "tone-info":
                        {
                            this.ToneInfo = node2.InnerXml;
                            continue;
                        }
                        case "price":
                        {
                            double.TryParse(node2.InnerXml, ref this._price);
                            continue;
                        }
                        case "tone-valid-day":
                        {
                            try
                            {
                                DateTime.TryParse(node2.InnerXml, ref this._toneValidDay);
                            }
                            catch
                            {
                            }
                            continue;
                        }
                        case "update-time":
                        {
                            try
                            {
                                DateTime.TryParse(node2.InnerXml, ref this._updateTime);
                            }
                            catch
                            {
                            }
                            continue;
                        }
                        case "download-times":
                        {
                            int.TryParse(node2.InnerXml, ref this._downloadTimes);
                            continue;
                        }
                        case "tone-valid":
                        {
                            int num = 0;
                            int.TryParse(node2.InnerXml, ref num);
                            this.IsExpired = num != 0;
                            continue;
                        }
                    }
                    continue;
                }
                catch
                {
                    continue;
                }
            }
        }

        public int DownloadTimes
        {
            get
            {
                return this._downloadTimes;
            }
            set
            {
                this._downloadTimes = value;
            }
        }

        public bool IsExpired
        {
            get
            {
                return this.m_fExpired;
            }
            set
            {
                this.m_fExpired = value;
            }
        }

        public double Price
        {
            get
            {
                return this._price;
            }
            set
            {
                this._price = value;
            }
        }

        public string Region
        {
            get
            {
                return this._region;
            }
            set
            {
                this._region = value;
            }
        }

        public string ToneCode
        {
            get
            {
                return this._toneCode;
            }
            set
            {
                this._toneCode = value;
            }
        }

        public string ToneInfo
        {
            get
            {
                return this._toneInfo;
            }
            set
            {
                this._toneInfo = value;
            }
        }

        public DateTime ToneValidDay
        {
            get
            {
                return this._toneValidDay;
            }
            set
            {
                this._toneValidDay = value;
            }
        }

        public DateTime UpdateTime
        {
            get
            {
                return this._updateTime;
            }
            set
            {
                this._updateTime = value;
            }
        }
    }
}

⌨️ 快捷键说明

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