Object representing a download or upload speed limit
Inheritance: IBinarySerializable
コード例 #1
0
ファイル: Group.cs プロジェクト: przunk/Miracle.FileZilla.Api
 /// <summary>
 /// Default constructor (sets defaults as in FileZilla server interface)
 /// </summary>
 public Group()
 {
     BypassUserLimit    = TriState.No;
     Enabled            = TriState.Yes;
     DisallowedIPs      = new List <string>();
     AllowedIPs         = new List <string>();
     SharedFolders      = new List <SharedFolder>();
     DownloadSpeedLimit = new SpeedLimit(GetType() == typeof(Group));
     UploadSpeedLimit   = new SpeedLimit(GetType() == typeof(Group));
 }
コード例 #2
0
 /// <summary>
 /// Default constructor (sets defaults as in FileZilla server interface)
 /// </summary>
 public Group()
 {
     BypassUserLimit = TriState.No;
     Enabled = TriState.Yes;
     DisallowedIPs = new List<string>();    
     AllowedIPs = new List<string>();    
     SharedFolders = new List<SharedFolder>();
     DownloadSpeedLimit = new SpeedLimit(GetType() == typeof(Group));
     UploadSpeedLimit = new SpeedLimit(GetType() == typeof(Group));
 }