C# Class MyDriving.Services.OBDDataProcessor

Show file Open project: Azure-Samples/MyDriving Class Usage Examples

Public Methods

Method Description
ConnectToObdDevice ( bool showConfirmDialog ) : System.Threading.Tasks.Task
DisconnectFromObdDevice ( ) : System.Threading.Tasks.Task
GetProcessor ( ) : OBDDataProcessor
Initialize ( IStoreManager storeManager ) : System.Threading.Tasks.Task
ReadOBDData ( ) : String>>.Task
SendTripPointToIOTHub ( string tripId, string userId, TripPoint tripDataPoint ) : System.Threading.Tasks.Task

Private Methods

Method Description
AddTripPointToBuffer ( string tripDataPointBlob ) : System.Threading.Tasks.Task
ConnectToObdDeviceWithConfirmation ( ) : Task
Current_ConnectivityChanged ( object sender, Plugin e ) : void
OBDDataProcessor ( ) : MyDriving.AzureClient
OnTick ( object args ) : void
SendBufferedDataToIOTHub ( ) : System.Threading.Tasks.Task
StartPollingOBDDevice ( ) : void
StopPollingOBDDevice ( ) : void
TryToConnectToOBDDevice ( ) : System.Threading.Tasks.Task

Method Details

ConnectToObdDevice() public method

public ConnectToObdDevice ( bool showConfirmDialog ) : System.Threading.Tasks.Task
showConfirmDialog bool
return System.Threading.Tasks.Task

DisconnectFromObdDevice() public method

public DisconnectFromObdDevice ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

GetProcessor() public static method

public static GetProcessor ( ) : OBDDataProcessor
return OBDDataProcessor

Initialize() public method

public Initialize ( IStoreManager storeManager ) : System.Threading.Tasks.Task
storeManager IStoreManager
return System.Threading.Tasks.Task

ReadOBDData() public method

public ReadOBDData ( ) : String>>.Task
return String>>.Task

SendTripPointToIOTHub() public method

public SendTripPointToIOTHub ( string tripId, string userId, TripPoint tripDataPoint ) : System.Threading.Tasks.Task
tripId string
userId string
tripDataPoint MyDriving.DataObjects.TripPoint
return System.Threading.Tasks.Task