Class InternalStorageBrowser
- Namespace
- PalmSens.Core.Simplified.InternalStorage
- Assembly
- PalmSens.Core.Simplified.dll
Internal storage browser that is used for browsing device folders and files.
public class InternalStorageBrowser : IInternalStorageBrowser
- Inheritance
-
InternalStorageBrowser
- Implements
- Inherited Members
Constructors
InternalStorageBrowser(ClientConnection)
public InternalStorageBrowser(ClientConnection clientConnection)
Parameters
clientConnectionClientConnection
Methods
GetLoader(DeviceFile)
public IInternalStorageFileLoader GetLoader(DeviceFile rawData)
Parameters
rawDataDeviceFile
Returns
GetPathItems(IInternalStorageFolder)
Get the path items for the parent folder.
public 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.
public 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.
public IInternalStorageFolder GetRoot()
Returns
GetRootAsync()
Get the root folder for the device.
public 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.
public 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.
public 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.