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