C# Class Lando.Cardreader

Provides hardware reader events.
Inheritance: IDisposable
Mostrar archivo Open project: G-Rad/Lando

Public Methods

Method Description
Cardreader ( ) : System
Dispose ( ) : void
SetBuzzerOutputForCardDetection ( Lando.ContactlessCard card, bool shouldBuzzWhenCardDetected ) : void
StartWatch ( ) : void

Starts reader listening.

StopWatch ( ) : void

Stops reader listening.

UpdateLedAndBuzzer ( Lando.ContactlessCard card, Lando.LedBuzzerStatus status ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
OnCardConnected ( object sender, Lando.Watcher.WatcherCardEventArgs e ) : void
OnCardDisconnected ( object sender, Lando.Watcher.WatcherCardEventArgs e ) : void
OnCardreaderConnected ( object sender, Lando.Watcher.WatcherCardreaderEventArgs e ) : void
OnCardreaderDisconnected ( object sender, Lando.Watcher.WatcherCardreaderEventArgs e ) : void

Method Details

Cardreader() public method

public Cardreader ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

SetBuzzerOutputForCardDetection() public method

public SetBuzzerOutputForCardDetection ( Lando.ContactlessCard card, bool shouldBuzzWhenCardDetected ) : void
card Lando.ContactlessCard
shouldBuzzWhenCardDetected bool
return void

StartWatch() public method

Starts reader listening.
public StartWatch ( ) : void
return void

StopWatch() public method

Stops reader listening.
public StopWatch ( ) : void
return void

UpdateLedAndBuzzer() public method

public UpdateLedAndBuzzer ( Lando.ContactlessCard card, Lando.LedBuzzerStatus status ) : void
card Lando.ContactlessCard
status Lando.LedBuzzerStatus
return void