Interface IInternalStorageBrowser
- Namespace
- PalmSens.Core.Simplified.InternalStorage
- Assembly
- PalmSens.Core.Simplified.dll
Internal storage browser that is used for browsing device folders and files.
public interface IInternalStorageBrowser
Methods
GetLoader(DeviceFile)
IInternalStorageFileLoader GetLoader(DeviceFile rawData)
Parameters
rawDataDeviceFile
Returns
GetPathItems(IInternalStorageFolder)
Get the path items for the parent folder.
IList<IInternalStorageItem> GetPathItems(IInternalStorageFolder parent)
Parameters
parentIInternalStorageFolderThe parent folder.
Returns
- IList<IInternalStorageItem>
A list of storage items, can be folders and/or measurements.
GetPathItemsAsync(IInternalStorageFolder)
Get the path items for the parent folder.
Task<IList<IInternalStorageItem>> GetPathItemsAsync(IInternalStorageFolder parent)
Parameters
parentIInternalStorageFolderThe parent folder.
Returns
- Task<IList<IInternalStorageItem>>
A list of storage items, can be folders and/or measurements.
GetRoot()
Get the root folder for the device.
IInternalStorageFolder GetRoot()
Returns
GetRootAsync()
Get the root folder for the device.
Task<IInternalStorageFolder> GetRootAsync()
Returns
RunAsync<TResult>(Func<ClientConnection, Task<TResult>>)
Run a function on the client connection. This is required to ensure that when interacting on the device that the correct locking is used.
Task<TResult> RunAsync<TResult>(Func<ClientConnection, Task<TResult>> funcToRun)
Parameters
Returns
Type Parameters
TResultThe expected result.
Run<TResult>(Func<ClientConnection, TResult>)
Run a function on the client connection. This is required to ensure that when interacting on the device that the correct locking is used.
TResult Run<TResult>(Func<ClientConnection, TResult> funcToRun)
Parameters
funcToRunFunc<ClientConnection, TResult>The function to run.
Returns
- TResult
Returns the
TResult
Type Parameters
TResultThe expected result.