飞信的收发使用csharp进行开发

源代码在线查看: message.cs

软件大小: 1042 K
上传用户: sunqingyan
关键词: csharp 飞信 收发
下载地址: 免注册下载 普通下载 VIP

相关代码

				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;
				            }
				        }
				    }
				}
				
							

相关资源