move Models.API in Endpoint module
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

pull/40/head
Maxime BATISTA 2 years ago
parent bf95cc70a5
commit 2857b1463e

@ -1,7 +1,6 @@
namespace ShoopNCook;
using ShoopNCook.Pages;
using Models;
using Models.Endpoint;
using Endpoint;
using LocalEndpoint;
public partial class App : Application, ConnectionObserver, IApp

@ -1,7 +1,7 @@
namespace ShoopNCook;
using Microsoft.Maui.Controls;
using Models;
using Models.Endpoint;
using Endpoint;
using ShoopNCook.Controllers;
using ShoopNCook.Pages;

@ -1,4 +1,4 @@
using Models.Endpoint;
using Endpoint;
using Models;
namespace ShoopNCook.Controllers

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Models\Models.csproj" />
</ItemGroup>
</Project>

@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.Endpoint
using Models;
namespace Endpoint
{
public interface IAccountManager
{

@ -0,0 +1,11 @@

namespace Endpoint
{
public interface IEndpoint
{
public IAccountManager AccountManager { get; }
}
}

@ -1,5 +1,5 @@
using Models;
using Models.Endpoint;
using Endpoint;
using System;
using System.Collections.Generic;
using System.Linq;

@ -1,4 +1,4 @@
using Models.Endpoint;
using Endpoint;
namespace LocalEndpoint
{
@ -6,6 +6,5 @@ namespace LocalEndpoint
{
public IAccountManager AccountManager => new AccountManager();
public ISearchEngine SearchEngine => throw new NotImplementedException();
}
}

@ -7,6 +7,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Endpoint\Endpoint.csproj" />
<ProjectReference Include="..\Models\Models.csproj" />
</ItemGroup>

@ -1,16 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.Endpoint
{
public interface IEndpoint
{
public IAccountManager AccountManager { get; }
public ISearchEngine SearchEngine { get; }
}
}

@ -1,13 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.Endpoint
{
public interface ISearchEngine
{
//TODO define methods to search recipes
}
}

@ -48,22 +48,27 @@
<ItemGroup>
<AndroidResource Remove="ShopNCookTests\**" />
<AndroidResource Remove="Tests\**" />
<Compile Remove="Endpoint\**" />
<Compile Remove="LocalEndpoint\**" />
<Compile Remove="Models\**" />
<Compile Remove="ShopNCookTests\**" />
<Compile Remove="Tests\**" />
<EmbeddedResource Remove="Endpoint\**" />
<EmbeddedResource Remove="LocalEndpoint\**" />
<EmbeddedResource Remove="Models\**" />
<EmbeddedResource Remove="ShopNCookTests\**" />
<EmbeddedResource Remove="Tests\**" />
<MauiCss Remove="Endpoint\**" />
<MauiCss Remove="LocalEndpoint\**" />
<MauiCss Remove="Models\**" />
<MauiCss Remove="ShopNCookTests\**" />
<MauiCss Remove="Tests\**" />
<MauiXaml Remove="Endpoint\**" />
<MauiXaml Remove="LocalEndpoint\**" />
<MauiXaml Remove="Models\**" />
<MauiXaml Remove="ShopNCookTests\**" />
<MauiXaml Remove="Tests\**" />
<None Remove="Endpoint\**" />
<None Remove="LocalEndpoint\**" />
<None Remove="Models\**" />
<None Remove="ShopNCookTests\**" />
@ -113,6 +118,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="Endpoint\Endpoint.csproj" />
<ProjectReference Include="LocalEndpoint\LocalEndpoint.csproj" />
<ProjectReference Include="Models\Models.csproj" />
</ItemGroup>

@ -10,6 +10,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Models", "Models\Models.csp
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LocalEndpoint", "LocalEndpoint\LocalEndpoint.csproj", "{57732316-93B9-4DA0-A212-F8892D3D968B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Endpoint", "Endpoint\Endpoint.csproj", "{C976BDD8-710D-4162-8A42-973B634491F9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -34,6 +36,10 @@ Global
{57732316-93B9-4DA0-A212-F8892D3D968B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{57732316-93B9-4DA0-A212-F8892D3D968B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{57732316-93B9-4DA0-A212-F8892D3D968B}.Release|Any CPU.Build.0 = Release|Any CPU
{C976BDD8-710D-4162-8A42-973B634491F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C976BDD8-710D-4162-8A42-973B634491F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C976BDD8-710D-4162-8A42-973B634491F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C976BDD8-710D-4162-8A42-973B634491F9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

@ -1,4 +1,4 @@
using Models.Endpoint;
using Endpoint;
using ShoopNCook.Controllers;
namespace ShoopNCook.Pages;

Loading…
Cancel
Save