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

📄 message.cs

📁 飞信的收发使用csharp进行开发
💻 CS
字号:
namespace Imps.Client.Pc
{
    using Imps.Client.Core;
    using System;

    public class Message
    {
        private string _content;
        private string _date;
        private string _from;
        private string _fromUri;
        private string _messageId;
        private Contact _ownerContact;
        private string _time;
        private string _to;

        public string Content
        {
            get
            {
                return this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public string Date
        {
            get
            {
                return this._date;
            }
            set
            {
                this._date = value;
            }
        }

        public string From
        {
            get
            {
                return this._from;
            }
            set
            {
                this._from = value;
            }
        }

        public string FromUri
        {
            get
            {
                return this._fromUri;
            }
            set
            {
                this._fromUri = value;
            }
        }

        public string MessageId
        {
            get
            {
                return this._messageId;
            }
            set
            {
                this._messageId = value;
            }
        }

        public DateTime MsgDateTime
        {
            get
            {
                try
                {
                    DateTime time;
                    if (DateTime.TryParse(this._date + " " + this._time, out time))
                    {
                        return time;
                    }
                }
                catch (Exception)
                {
                }
                return DateTime.Now;
            }
        }

        public Contact OwnerContact
        {
            get
            {
                return this._ownerContact;
            }
            set
            {
                this._ownerContact = value;
            }
        }

        public string Time
        {
            get
            {
                return this._time;
            }
            set
            {
                this._time = value;
            }
        }

        public string To
        {
            get
            {
                return this._to;
            }
            set
            {
                this._to = value;
            }
        }
    }
}

⌨️ 快捷键说明

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