C# Класс MD.CloudConnect.Notification

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_instance Notification

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

Метод Описание
Decode ( string jsonData ) : List
Initialize ( string fieldsName, IDataCache dataCache, bool autoFilter = true, bool fixMoving = false ) : void

Prepare notification class with advanced features

UpdateManualyDataCache ( string asset, string field, ITracking data ) : void

You can update data cache manualy with this function. It will be apply after internal process Your modification will not be overwrite.

Приватные методы

Метод Описание
FillTrackingDataUserChoice ( ITracking data, TrackingData history, bool updateCache = true ) : void
GeneratePayload ( string asset, string fields ) : TrackingData
IsInMovement ( ITracking current, ITracking previous ) : bool
MinDistanceDetected ( ITracking p1, ITracking p2 ) : bool
Notification ( ) : System
UpdateCache ( TrackingData history, string field, ITracking data ) : void

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

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

public Decode ( string jsonData ) : List
jsonData string
Результат List

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

Prepare notification class with advanced features
public Initialize ( string fieldsName, IDataCache dataCache, bool autoFilter = true, bool fixMoving = false ) : void
fieldsName string List of field name that you want in the data cache (use to recreate data)
dataCache IDataCache Class call one time to load a previous data save in your database
autoFilter bool Activate auto filter function. Remove bad data like data with date in the future or not order
fixMoving bool Activate function to detect when a unit move or not.This information is send by the unit but can be not correct in some case
Результат void

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

You can update data cache manualy with this function. It will be apply after internal process Your modification will not be overwrite.
public UpdateManualyDataCache ( string asset, string field, ITracking data ) : void
asset string
field string
data ITracking
Результат void

Описание свойств

_instance защищенное статическое свойство

protected static Notification,MD.CloudConnect _instance
Результат Notification