예제 #1
0
 /// <summary>
 /// 是否包含了某项文件
 /// </summary>
 /// <param name="item"></param>
 /// <returns></returns>
 public bool IsContainFile(Fileitem item)
 {
     for (int i = 0; i < files.Count; i++)
     {
         if (files[i] == item)
         {
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
 /// <summary>
 /// 拷贝构造
 /// </summary>
 /// <param name="o"></param>
 public Fileitem(Fileitem o)
 {
     this.relativePath = o.relativePath;
     this.fileSize     = o.fileSize;
     this.SHA256       = o.SHA256;
 }
예제 #3
0
 /// <summary>
 /// 从一个Fileitem构造
 /// </summary>
 /// <param name="fi"></param>
 public DownloadFileItem(Fileitem fi) : base(fi)
 {
 }