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; namespace ShoopNCook;
using ShoopNCook.Pages;
using Models; using Models;
using Models.Endpoint; using Endpoint;
using LocalEndpoint; using LocalEndpoint;
public partial class App : Application, ConnectionObserver, IApp public partial class App : Application, ConnectionObserver, IApp

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

@ -1,4 +1,4 @@
using Models.Endpoint; using Endpoint;
using Models; using Models;
namespace ShoopNCook.Controllers 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 Models;
using System.Collections.Generic; namespace Endpoint
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.Endpoint
{ {
public interface IAccountManager public interface IAccountManager
{ {

@ -0,0 +1,11 @@

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

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

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

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

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

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

Loading…
Cancel
Save