C# Class SensorbergSDK.Internal.Data.EventHistory

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

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

EventHistory() public méthode

public EventHistory ( ) : System
Résultat System

FlushHistoryAsync() public méthode

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

SaveBeaconEventAsync() public méthode

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

SaveExecutedResolvedActionAsync() public méthode

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

SaveExecutedResolvedActionAsync() public méthode

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

ShouldSupressAsync() public méthode

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
Résultat bool