📄 filesharesetting.cs
字号:
namespace Imps.Client.Core
{
using System;
public class FileShareSetting : PropertyDictionary
{
private Imps.Client.Core.SystemSetting _sysSetting;
internal FileShareSetting(Imps.Client.Core.SystemSetting sysSetting)
{
this._sysSetting = sysSetting;
}
[ConfigCategory(ConfigCategory.System)]
public string BlockUploadUri
{
get
{
return this._sysSetting.GetPropertyValue<string>("upload-share-content");
}
}
[ConfigCategory(ConfigCategory.System)]
public int BlockWhenLessThan
{
get
{
return this._sysSetting.GetPropertyValue<int>("BlockWhenLessThan", 0x200000);
}
}
[ConfigCategory(ConfigCategory.LocalFixed)]
public int EveryBlockSizeWhenBlock
{
get
{
return this._sysSetting.GetPropertyValue<int>("EveryBlockSizeWhenBlock", 0x20000);
}
}
[ConfigCategory(ConfigCategory.LocalFixed)]
public int EveryBlockSizeWhenRelay
{
get
{
return this._sysSetting.GetPropertyValue<int>("EveryBlockSizeWhenRelay", 0x8000);
}
}
[ConfigCategory(ConfigCategory.System)]
public string ForbiddenShareContentType
{
get
{
return this._sysSetting.GetPropertyValue<string>("forbidden-share-content-type");
}
}
public int MaxRelaySize
{
get
{
return this._sysSetting.GetPropertyValue<int>("MaxRelayShareContentSize", 0x7fffffff);
}
}
[ConfigCategory(ConfigCategory.System)]
public int MaxShareContentCountOnOneDialog
{
get
{
return this._sysSetting.GetPropertyValue<int>("MaxShareContentCountOnOneDialog", 5);
}
}
[ConfigCategory(ConfigCategory.LocalFixed)]
public int MaxShareContentSize
{
get
{
return this._sysSetting.GetPropertyValue<int>("max-share-content-size");
}
}
[ConfigCategory(ConfigCategory.System)]
public int MaxSizeWhenMultiConversation
{
get
{
return this._sysSetting.GetPropertyValue<int>("temp-group-max-share-content-size", 0x200000);
}
}
[ConfigCategory(ConfigCategory.System)]
public int MaxSizeWhenOffline
{
get
{
return this._sysSetting.GetPropertyValue<int>("offline-max-share-content-size", 0x200000);
}
}
[ConfigCategory(ConfigCategory.LocalFixed)]
public int OnceUploadSize
{
get
{
return this._sysSetting.GetPropertyValue<int>("OnceUploadSize", 0x8000);
}
}
public string RecordFinishUri
{
get
{
return this._sysSetting.GetPropertyValue<string>("RecordFinishUri");
}
}
[ConfigCategory(ConfigCategory.System)]
public int RelayMaxTryTime
{
get
{
return this._sysSetting.GetPropertyValue<int>("RelayMaxTryTime", 300);
}
}
[ConfigCategory(ConfigCategory.System)]
public string RelayUploadUri
{
get
{
return this._sysSetting.GetPropertyValue<string>("relay-upload-share-content");
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -