C# Class MD.CloudConnect.Notification

Mostrar archivo Open project: mobile-devices/cloudconnect_dotnet_client

Protected Properties

Property Type Description
_instance Notification

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Decode() public method

public Decode ( string jsonData ) : List
jsonData string
return List

Initialize() public method

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
return void

UpdateManualyDataCache() public method

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
return void

Property Details

_instance protected_oe static_oe property

protected static Notification,MD.CloudConnect _instance
return Notification