messagestartdownload.cs

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

CS
56
字号
using System.Text;
using Org.InteliIM.Communications;

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

        }
        
        private Asset asset;

		/// <summary>
		/// Gets or sets the asset to download.
		/// </summary>
		/// <value></value>
		public Asset Asset
		{
			get
			{
                if (this.asset == null)
                    this.asset = new Asset();

                return this.asset;
			}
			set
			{
				this.asset = 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("start download [sender:" + this.From);
			sb.Append(",receiver:" + this.To);
			sb.Append(",name:" + this.Asset.Name + "]");

			return sb.ToString();
		}
	}
}

⌨️ 快捷键说明

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