📄 asset.cs
字号:
using System.Text;
namespace Org.InteliIM.Applications.Messenger.FileSharing
{
/// <summary>
/// Represents an asset item to share.
/// </summary>
public class Asset
{
/// <summary>
/// Initializes a new instance of the Asset class.
/// </summary>
public Asset()
{
}
private string name;
/// <summary>
/// Gets or sets the name.
/// </summary>
public string Name
{
get
{
if(this.name == null)
this.name = "";
return this.name;
}
set
{
this.name = value;
}
}
/// <summary>
/// Gets or set whether password required or not.
/// </summary>
/// <value></value>
public bool PasswordRequired
{
get
{
return (!this.Password.Equals(""));
}
}
private string password;
/// <summary>
/// Gets or sets the desired password.
/// </summary>
/// <value></value>
public string Password
{
get
{
if (this.password == null)
this.password = "";
return this.password;
}
set
{
this.password = value;
}
}
private string description;
/// <summary>
/// Gets or sets the description.
/// </summary>
public string Description
{
get
{
if(this.description == null)
this.description = "";
return this.description;
}
set
{
this.description = value;
}
}
private string path;
/// <summary>
/// Gets the sets the path of the associated file.
/// </summary>
public string Path
{
get
{
if(this.path == null)
this.path = "";
return this.path;
}
set
{
this.path = value;
}
}
private long size = 0;
/// <summary>
/// Gets or sets the size of the associated file.
/// </summary>
public long Size
{
get
{
return this.size;
}
set
{
this.size = 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(this.Name);
if (this.PasswordRequired)
sb.Append("*");
return sb.ToString();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -