messageassets.cs

来自「这个版本(InteliIM Open Kernel Release 2)是目前最」· CS 代码 · 共 54 行

CS
54
字号
using System.Text;
using System.Collections.Generic;
using Org.InteliIM.Communications;

namespace Org.InteliIM.Applications.Messenger.FileSharing
{
	/// <summary>
	/// The message for downloading assets.
	/// </summary>
	public sealed class MessageAssets: InstantMessage
	{
		/// <summary>
		/// Initializes a new instance of the MessageAssets class.
		/// </summary>
		public MessageAssets()
		{
		}

		private Collection<Asset> assets;

        /// <summary>
        /// Gets or sets the assets collection.
        /// </summary>
        /// <value></value>
		public Collection<Asset> Assets
		{
			get
			{
				if (this.assets == null)
					this.assets = new Collection<Asset>();

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

        /// <summary>
        /// Overridden. 
        /// Creates and returns a string representation of the current object.
        /// </summary>
        /// <returns></returns>
        public override string ToString()
		{
			StringBuilder sb = new StringBuilder();

			sb.Append("download assets " + this.From + "]");

			return sb.ToString();
		}
	}
}

⌨️ 快捷键说明

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