Esempio n. 1
0
 public static List <DriveEntityInfo> MapYandexCatalogContent(IEnumerable <Resource> catalogContent,
                                                              ICloudDriveEngine driveEngine)
 => catalogContent
 .Select(entity => new DriveEntityInfo(
             entity.Path
             .Replace("disk:", ""),
             driveEngine))
 .ToList();
Esempio n. 2
0
 public DriveEntityInfo(string pathToEntity, ICloudDriveEngine driveEngine)
 {
     var(entityName, entityExpansion, parent) = ParsePathToEntity(pathToEntity);
     Name        = entityName;
     Expansion   = entityExpansion;
     FullPath    = ParsePathToFullPath(pathToEntity);
     Parent      = parent;
     DriveEngine = driveEngine;
 }
Esempio n. 3
0
 public static List <DriveEntityInfo> MapDropboxCatalogContent(IEnumerable <Metadata> catalogContent,
                                                               ICloudDriveEngine driveEngine)
 => catalogContent
 .Select(entity => new DriveEntityInfo(
             entity.PathDisplay, driveEngine))
 .ToList();
Esempio n. 4
0
 public UserAccount(string name, ICloudDriveEngine driveEngine)
 {
     Name        = name;
     DriveEngine = driveEngine;
 }