callmeinfo.cs

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

CS
118
字号
namespace Imps.Client.Pc
{
    using System;

    internal class CallMeInfo
    {
        private DateTime _callMeTime;
        private string _cmd = string.Empty;
        private string _mobileNum = string.Empty;
        private bool _processed;
        private string _protocol = string.Empty;
        private string _uri = string.Empty;

        public CallMeInfo()
        {
            this.Clear();
        }

        public void Clear()
        {
            this._protocol = "";
            this._cmd = "";
            this._uri = "";
            this._mobileNum = "";
            this._callMeTime = DateTime.Now;
            this._processed = false;
        }

        public void Fill(string protocol, string cmd, string uri, string mobileNum, DateTime callMeTime, bool processed)
        {
            this._protocol = protocol;
            this._cmd = cmd;
            this._uri = uri;
            this._mobileNum = mobileNum;
            this._callMeTime = callMeTime;
            this._processed = processed;
        }

        public bool IsValid()
        {
            return (((string.Empty != this._protocol) && (string.Empty != this._cmd)) && ((string.Empty != this._uri) && (string.Empty != this._mobileNum)));
        }

        public DateTime CallMeTime
        {
            get
            {
                return this._callMeTime;
            }
            set
            {
                this._callMeTime = value;
            }
        }

        public string Cmd
        {
            get
            {
                return this._cmd;
            }
            set
            {
                this._cmd = value;
            }
        }

        public string MobileNum
        {
            get
            {
                return this._mobileNum;
            }
            set
            {
                this._mobileNum = value;
            }
        }

        public bool Processed
        {
            get
            {
                return this._processed;
            }
            set
            {
                this._processed = value;
            }
        }

        public string Protocol
        {
            get
            {
                return this._protocol;
            }
            set
            {
                this._protocol = value;
            }
        }

        public string Uri
        {
            get
            {
                return this._uri;
            }
            set
            {
                this._uri = value;
            }
        }
    }
}

⌨️ 快捷键说明

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