Table of Contents

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

clientConnection ClientConnection

Methods

GetLoader(DeviceFile)

public IInternalStorageFileLoader GetLoader(DeviceFile rawData)

Parameters

rawData DeviceFile

Returns

IInternalStorageFileLoader

GetPathItems(IInternalStorageFolder)

Get the path items for the parent folder.

public 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.

public 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.

public IInternalStorageFolder GetRoot()

Returns

IInternalStorageFolder

GetRootAsync()

Get the root folder for the device.

public 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.

public 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.

public 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.