relocate IDbProvider and SatelliteLog classes to interfaces.
This commit is contained in:
parent
af14e57725
commit
19d53cb33b
@ -1,6 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Interfaces;
|
using Interfaces;
|
||||||
using RaceLapTimer.ApiControllers;
|
|
||||||
|
|
||||||
namespace RaceLapTimer
|
namespace RaceLapTimer
|
||||||
{
|
{
|
||||||
@ -27,5 +26,6 @@ namespace RaceLapTimer
|
|||||||
void StoreTransponderLog(SatelliteLog log);
|
void StoreTransponderLog(SatelliteLog log);
|
||||||
|
|
||||||
bool DeletePilot(int id);
|
bool DeletePilot(int id);
|
||||||
|
bool RemoveTransponderAssociation(int pilotId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -42,6 +42,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="IConfigFilePathProvider.cs" />
|
<Compile Include="IConfigFilePathProvider.cs" />
|
||||||
<Compile Include="IContainerHelper.cs" />
|
<Compile Include="IContainerHelper.cs" />
|
||||||
|
<Compile Include="IDbProvider.cs" />
|
||||||
<Compile Include="ILoggerService.cs" />
|
<Compile Include="ILoggerService.cs" />
|
||||||
<Compile Include="IPluginInformation.cs" />
|
<Compile Include="IPluginInformation.cs" />
|
||||||
<Compile Include="IPluginLocator.cs" />
|
<Compile Include="IPluginLocator.cs" />
|
||||||
@ -64,6 +65,7 @@
|
|||||||
<Compile Include="IUserStorage.cs" />
|
<Compile Include="IUserStorage.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="RaceMode.cs" />
|
<Compile Include="RaceMode.cs" />
|
||||||
|
<Compile Include="SatelliteLog.cs" />
|
||||||
<Compile Include="User.cs" />
|
<Compile Include="User.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
|||||||
8
RaceLapTimer/Interfaces/SatelliteLog.cs
Normal file
8
RaceLapTimer/Interfaces/SatelliteLog.cs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
namespace Interfaces
|
||||||
|
{
|
||||||
|
public class SatelliteLog
|
||||||
|
{
|
||||||
|
public int TransponderToken { get; set; }
|
||||||
|
public int LapTimeMs { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,11 +1,12 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using Interfaces;
|
||||||
using Nancy;
|
using Nancy;
|
||||||
|
|
||||||
namespace RaceLapTimer.ApiControllers
|
namespace RaceLapTimer.ApiControllers
|
||||||
{
|
{
|
||||||
public class SatelliteApiModule:NancyModule
|
public class SatelliteApiModule:NancyModule
|
||||||
{
|
{
|
||||||
private IDbProvider _provider;
|
private readonly IDbProvider _provider;
|
||||||
public SatelliteApiModule(IDbProvider provider) : base("/api/satellite")
|
public SatelliteApiModule(IDbProvider provider) : base("/api/satellite")
|
||||||
{
|
{
|
||||||
_provider = provider;
|
_provider = provider;
|
||||||
@ -26,10 +27,4 @@ namespace RaceLapTimer.ApiControllers
|
|||||||
return HttpStatusCode.OK;
|
return HttpStatusCode.OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SatelliteLog
|
|
||||||
{
|
|
||||||
public int TransponderToken { get; set; }
|
|
||||||
public int LapTimeMs { get; set; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user