Table of Contents

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

rawData DeviceFile

Returns

IInternalStorageFileLoader

GetPathItems(IInternalStorageFolder)

Get the path items for the parent folder.

IList<IInternalStorageItem> GetPathItems(IInternalStorageFolder parent)

Parameters

parent IInternalStorageFolder

The 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

parent IInternalStorageFolder

The 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

IInternalStorageFolder

GetRootAsync()

Get the root folder for the device.

Task<IInternalStorageFolder> GetRootAsync()

Returns

Task<IInternalStorageFolder>

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

funcToRun Func<ClientConnection, Task<TResult>>

The function to run.

Returns

Task<TResult>

Returns a Task of the TResult

Type Parameters

TResult

The 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

funcToRun Func<ClientConnection, TResult>

The function to run.

Returns

TResult

Returns the TResult

Type Parameters

TResult

The expected result.