📄 messagedownloadrequest.cs
字号:
using System.Text;
using Org.InteliIM.Applications.Messenger.FileSharing;
using Org.InteliIM.Communications;
namespace Org.InteliIM.Applications.Messenger.FileSharing
{
/// <summary>
/// the message for requesting download.
/// </summary>
public sealed class MessageDownloadRequest : InstantMessage
{
/// <summary>
/// Initializes a new instance of the MessageDownloadRequest class.
/// </summary>
public MessageDownloadRequest()
{
}
private Asset asset;
/// <summary>
/// Gets or sets the asset.
/// </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("request for download [sender:" + this.From);
sb.Append(",receiver:" + this.To);
sb.Append(",name:" + this.Asset.Name + "]");
return sb.ToString();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -