Inheritance: PutioFsItem
Exemple #1
0
 public PutioFileSystem(Api putio_api)
 {
     this.PutioApi = putio_api;
     this.OpenHandles = new Dictionary<Guid, PutioFileHandle>();
     this.Root = PutioFolder.GetRootFolder(this);
     this.DownloadManager = new DownloadManager(Constants.MAX_CONNECTIONS);
 }
Exemple #2
0
 public PutioFileSystem(Api putio_api)
 {
     this.PutioApi        = putio_api;
     this.OpenHandles     = new Dictionary <Guid, PutioFileHandle>();
     this.Root            = PutioFolder.GetRootFolder(this);
     this.DownloadManager = new DownloadManager(Constants.MAX_CONNECTIONS);
 }
Exemple #3
0
 public PutioFolder(PutioFsDataProvider data_provider, PutioFolder parent)
     : base(data_provider, parent)
 {
     if (!this.IsDirectory)
     {
         throw new Exception("Can not create a directory entry for a non directory item.");
     }
 }
Exemple #4
0
 public PutioFsItem(PutioFsDataProvider data_provider, PutioFolder parent)
 {
     this.DataProvider = data_provider;
     if (parent != null)
     {
         this.Fs = parent.Fs;
     }
 }
Exemple #5
0
 protected PutioFsItem(PutioFileSystem fs)
 {
     Item item = new Item();
     item.Id = "0";
     item.Name = "";
     item.IsDirectory = true;
     this.Fs = fs;
     this.DataProvider = new PutioFsApiDataProvider(this.Fs, item);
     this.Parent = null;
 }
Exemple #6
0
        protected PutioFsItem(PutioFileSystem fs)
        {
            Item item = new Item();

            item.Id           = "0";
            item.Name         = "";
            item.IsDirectory  = true;
            this.Fs           = fs;
            this.DataProvider = new PutioFsApiDataProvider(this.Fs, item);
            this.Parent       = null;
        }
Exemple #7
0
 public override IEnumerable<Item> GetFsItems(PutioFolder folder)
 {
     return this.Fs.PutioApi.GetItems(this.PutioItem.Id);
 }
Exemple #8
0
 public override IEnumerable<Item> GetFsItems(PutioFolder folder)
 {
     yield break;
 }
Exemple #9
0
 public abstract IEnumerable<Item> GetFsItems(PutioFolder folder);
 abstract public IEnumerable <Item> GetFsItems(PutioFolder folder);
 public override IEnumerable <Item> GetFsItems(PutioFolder folder)
 {
     yield break;
 }
 public override IEnumerable <Item> GetFsItems(PutioFolder folder)
 {
     return(this.Fs.PutioApi.GetItems(this.PutioItem.Id));
 }
Exemple #13
0
 public PutioFile(PutioFsDataProvider data_provider, PutioFolder parent)
     : base(data_provider, parent)
 {
     this.Cache = new LocalFileCache(this);
 }
Exemple #14
0
 public PutioFile(PutioFsDataProvider data_provider, PutioFolder parent)
     : base(data_provider, parent)
 {
     this.Cache = new LocalFileCache(this);
 }
Exemple #15
0
 public PutioFsItem(PutioFsDataProvider data_provider, PutioFolder parent)
 {
     this.DataProvider = data_provider;
     if (parent != null)
         this.Fs = parent.Fs;
 }
Exemple #16
0
 public PutioFolder(PutioFsDataProvider data_provider, PutioFolder parent)
     : base(data_provider, parent)
 {
     if (!this.IsDirectory)
         throw new Exception("Can not create a directory entry for a non directory item.");
 }