messagegetcontactinforesult.cs

来自「该源代码用 C# 写成」· CS 代码 · 共 43 行

CS
43
字号
using System.Text;
using Org.InteliIM.Users;

namespace Org.InteliIM.Users
{
	/// <summary>
	/// 获取同事资料结果消息
	/// </summary>
	public sealed class MessageGetContactInfoResult : InstantMessage
	{
		private Contact contact;

		/// <summary>
		/// 用户信息
		/// </summary>
		public Contact Contact
		{
			get
			{
				if (this.contact == null)
					this.contact = new Contact();

				return this.contact;
			}
			set { this.contact = value; }
		}

		public MessageGetContactInfoResult()
		{
		}

		public override string ToString()
		{
			StringBuilder sb = new StringBuilder();

			sb.Append("获取同事资料结果 [用户:" + this.From);
			sb.Append(",同事:" + this.Contact.Id + "]");

			return sb.ToString();
		}

	}
}

⌨️ 快捷键说明

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