Start with NFCService

This commit is contained in:
TheJoKlLa
2023-01-29 16:55:07 +01:00
parent 492ed2e3ce
commit 6e436b5c8c
12 changed files with 155 additions and 0 deletions

View File

@ -82,6 +82,7 @@
<Compile Include="Services\APIService_New.cs" />
<Compile Include="Services\APIServiceConnection.cs" />
<Compile Include="Services\BrowserService.cs" />
<Compile Include="Services\NFCService.cs" />
<Compile Include="Services\PreferenceStorageService.cs" />
<Compile Include="Services\SecretStorage.cs" />
<Compile Include="Services\VersioningService.cs" />
@ -93,6 +94,10 @@
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\external\NFC\NFC\NFC.csproj">
<Project>{D53A98E8-48B5-4DCE-A98E-4623EE746E16}</Project>
<Name>NFC</Name>
</ProjectReference>
<ProjectReference Include="..\..\FabAccessAPI\FabAccessAPI.csproj">
<Project>{3251FCE9-FEA3-4662-8BEB-636BE6732D48}</Project>
<Name>FabAccessAPI</Name>

View File

@ -1,6 +1,7 @@
using Borepin.Droid.Services;
using Borepin.Service;
using Borepin.Service.Browser;
using Borepin.Service.NFC;
using Borepin.Service.Storage;
using Borepin.Service.Versioning;
using Prism;
@ -16,6 +17,7 @@ namespace Borepin.Droid
containerRegistry.Register<ISecretStorageService, SecretStorage>();
containerRegistry.Register<IVersioningService, VersioningService>();
containerRegistry.Register<IBrowserService, BrowserService>();
containerRegistry.Register<INFCService, NFCService>();
containerRegistry.RegisterSingleton<IAPIService, APIService>();
}

View File

@ -0,0 +1,33 @@
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Borepin.Service.NFC;
using NFC.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Borepin.Droid.Services
{
public class NFCService : INFCService
{
public ICard GetCard()
{
throw new NotImplementedException();
}
public IHardware GetHardware()
{
throw new NotImplementedException();
}
public IReader GetReader()
{
throw new NotImplementedException();
}
}
}