C# Class SensorbergSDK.Internal.Data.EventHistory

Event storage. It stores all past beacon events and actions associated with the events.
Mostra file Open project: sensorberg-dev/windows10-sdk

Public Methods

Method Description
CheckSendOnlyOnceAsync ( ResolvedAction resolvedAction ) : bool

If sendOnlyOnce is true for resolved action, fuction will check from the history if the action is already presented for the user.

EventHistory ( ) : System
FlushHistoryAsync ( ) : System.Threading.Tasks.Task

Checks if there are new events or actions in the history and sends them to the server.

SaveBeaconEventAsync ( BeaconEventArgs eventArgs, string location ) : System.Threading.Tasks.Task

Stores a beacon event to the database.

SaveExecutedResolvedActionAsync ( BeaconAction beaconAction, string beaconPid, BeaconEventType beaconEventType, string location ) : System.Threading.Tasks.Task

For convenience.

SaveExecutedResolvedActionAsync ( ResolvedActionsEventArgs eventArgs, BeaconAction beaconAction ) : System.Threading.Tasks.Task

Stores a resolved and executed action to the database.

ShouldSupressAsync ( ResolvedAction resolvedAction ) : bool

If supressionTime is set for the action, fuction will check from the history if the action is already presented during the supression time.

Method Details

CheckSendOnlyOnceAsync() public method

If sendOnlyOnce is true for resolved action, fuction will check from the history if the action is already presented for the user.
public CheckSendOnlyOnceAsync ( ResolvedAction resolvedAction ) : bool
resolvedAction SensorbergSDK.Internal.Transport.ResolvedAction
return bool

EventHistory() public method

public EventHistory ( ) : System
return System

FlushHistoryAsync() public method

Checks if there are new events or actions in the history and sends them to the server.
public FlushHistoryAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SaveBeaconEventAsync() public method

Stores a beacon event to the database.
public SaveBeaconEventAsync ( BeaconEventArgs eventArgs, string location ) : System.Threading.Tasks.Task
eventArgs BeaconEventArgs
location string
return System.Threading.Tasks.Task

SaveExecutedResolvedActionAsync() public method

For convenience.
public SaveExecutedResolvedActionAsync ( BeaconAction beaconAction, string beaconPid, BeaconEventType beaconEventType, string location ) : System.Threading.Tasks.Task
beaconAction BeaconAction
beaconPid string
beaconEventType BeaconEventType
location string
return System.Threading.Tasks.Task

SaveExecutedResolvedActionAsync() public method

Stores a resolved and executed action to the database.
public SaveExecutedResolvedActionAsync ( ResolvedActionsEventArgs eventArgs, BeaconAction beaconAction ) : System.Threading.Tasks.Task
eventArgs ResolvedActionsEventArgs
beaconAction BeaconAction
return System.Threading.Tasks.Task

ShouldSupressAsync() public method

If supressionTime is set for the action, fuction will check from the history if the action is already presented during the supression time.
public ShouldSupressAsync ( ResolvedAction resolvedAction ) : bool
resolvedAction SensorbergSDK.Internal.Transport.ResolvedAction
return bool