C# Класс SensorbergSDK.Internal.Data.EventHistory

Event storage. It stores all past beacon events and actions associated with the events.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

CheckSendOnlyOnceAsync() публичный Метод

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
Результат bool

EventHistory() публичный Метод

public EventHistory ( ) : System
Результат System

FlushHistoryAsync() публичный Метод

Checks if there are new events or actions in the history and sends them to the server.
public FlushHistoryAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SaveBeaconEventAsync() публичный Метод

Stores a beacon event to the database.
public SaveBeaconEventAsync ( BeaconEventArgs eventArgs, string location ) : System.Threading.Tasks.Task
eventArgs BeaconEventArgs
location string
Результат System.Threading.Tasks.Task

SaveExecutedResolvedActionAsync() публичный Метод

For convenience.
public SaveExecutedResolvedActionAsync ( BeaconAction beaconAction, string beaconPid, BeaconEventType beaconEventType, string location ) : System.Threading.Tasks.Task
beaconAction BeaconAction
beaconPid string
beaconEventType BeaconEventType
location string
Результат System.Threading.Tasks.Task

SaveExecutedResolvedActionAsync() публичный Метод

Stores a resolved and executed action to the database.
public SaveExecutedResolvedActionAsync ( ResolvedActionsEventArgs eventArgs, BeaconAction beaconAction ) : System.Threading.Tasks.Task
eventArgs ResolvedActionsEventArgs
beaconAction BeaconAction
Результат System.Threading.Tasks.Task

ShouldSupressAsync() публичный Метод

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
Результат bool