C# Class Automobile.Registrar.SQLiteClient

Inheritance: IMobileDb
Show file Open project: vistaprint/automobile

Public Methods

Method Description
Dispose ( ) : void

Closes the shared connection if one exists

GetFirstMatch ( DeviceInfo device ) : DeviceInfo
GetFirstMatch ( DeviceInfo device, bool filterByAvailible ) : DeviceInfo

Returns the IP of the first registered device which matches all the info. Null values are ignored in the match

Register ( DeviceInfo info ) : void
SQLiteClient ( string dbName ) : System

Creates tables, if needed.

SQLiteClient ( string dbName, bool shared ) : System

Creates tables, if needed. Optionally creates a shared connection (for in-memory or temporary file db).

SetAvailibility ( DeviceInfo device, bool availible ) : void

Method Details

Dispose() public method

Closes the shared connection if one exists
public Dispose ( ) : void
return void

GetFirstMatch() public method

public GetFirstMatch ( DeviceInfo device ) : DeviceInfo
device Automobile.Mobile.Framework.Data.DeviceInfo
return Automobile.Mobile.Framework.Data.DeviceInfo

GetFirstMatch() public method

Returns the IP of the first registered device which matches all the info. Null values are ignored in the match
public GetFirstMatch ( DeviceInfo device, bool filterByAvailible ) : DeviceInfo
device Automobile.Mobile.Framework.Data.DeviceInfo
filterByAvailible bool
return Automobile.Mobile.Framework.Data.DeviceInfo

Register() public method

public Register ( DeviceInfo info ) : void
info Automobile.Mobile.Framework.Data.DeviceInfo
return void

SQLiteClient() public method

Creates tables, if needed.
public SQLiteClient ( string dbName ) : System
dbName string Name of the file to use
return System

SQLiteClient() public method

Creates tables, if needed. Optionally creates a shared connection (for in-memory or temporary file db).
public SQLiteClient ( string dbName, bool shared ) : System
dbName string Name of the file to use, or :memory: for in memory db
shared bool To share a connection object between all calls to this class
return System

SetAvailibility() public method

public SetAvailibility ( DeviceInfo device, bool availible ) : void
device Automobile.Mobile.Framework.Data.DeviceInfo
availible bool
return void