mirror of
https://gitlab.com/fabinfra/fabaccess/nfc.git
synced 2025-03-12 23:01:45 +01:00
27 lines
809 B
C#
27 lines
809 B
C#
using System;
|
|
|
|
namespace NFC.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Abstract representation of the platform specific NFC Hardware
|
|
/// </summary>
|
|
public interface IHardware
|
|
{
|
|
/// <summary>
|
|
/// Check if the device has nfc support
|
|
/// </summary>
|
|
/// <returns>Returns true if the device supports NFC</returns>
|
|
bool IsAvailable();
|
|
|
|
/// <returns>Returns all available readers</returns>
|
|
string[] GetReaders();
|
|
|
|
/// <summary>
|
|
/// Create a new reader instance from the specified id
|
|
/// </summary>
|
|
/// <returns>Returns the spatform specific reader that corresponds to the id</returns>
|
|
/// <exception cref="ArgumentException">Invalid reader id</exception>
|
|
IReader OpenReader(string readerID);
|
|
}
|
|
}
|