Add Project and Model

pull/1/head
Emre KARTAL 2 years ago
parent 16a4be0ab2
commit bbc3a1659c

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33424.131
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shared", "Shared\Shared.csproj", "{ACD97125-7DB7-4A05-B9B2-D531D2B08A27}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Model", "Model\Model.csproj", "{94CAC52F-2584-4C8F-85BF-9333FFCE1481}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{ACD97125-7DB7-4A05-B9B2-D531D2B08A27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ACD97125-7DB7-4A05-B9B2-D531D2B08A27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ACD97125-7DB7-4A05-B9B2-D531D2B08A27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ACD97125-7DB7-4A05-B9B2-D531D2B08A27}.Release|Any CPU.Build.0 = Release|Any CPU
{94CAC52F-2584-4C8F-85BF-9333FFCE1481}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{94CAC52F-2584-4C8F-85BF-9333FFCE1481}.Debug|Any CPU.Build.0 = Debug|Any CPU
{94CAC52F-2584-4C8F-85BF-9333FFCE1481}.Release|Any CPU.ActiveCfg = Release|Any CPU
{94CAC52F-2584-4C8F-85BF-9333FFCE1481}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {BDB705DC-223D-4FDE-8D00-67929A13F0FD}
EndGlobalSection
EndGlobal

@ -0,0 +1,102 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Bet
{
public string Id
{
get => id;
private init
{
if (string.IsNullOrWhiteSpace(value))
{
id = "Unknown";
return;
}
id = value;
}
}
private readonly string id = null!;
public string Title
{
get => title;
private init
{
if (string.IsNullOrWhiteSpace(value))
{
title = "Unknown";
return;
}
title = value;
}
}
private readonly string title = null!;
public string Name
{
get => name;
private init
{
if (string.IsNullOrWhiteSpace(value))
{
name = "Unknown";
return;
}
name = value;
}
}
private readonly string name = null!;
public ReadOnlyDictionary<User, Mise> Users { get; private set; }
private Dictionary<User, Mise> users = new Dictionary<User, Mise>();
public ReadOnlyCollection<String> Choices { get; private set; }
private List<String> choices = new();
public string Theme
{
get => theme;
private init
{
if (string.IsNullOrWhiteSpace(value))
{
theme = "Unknown";
return;
}
theme = value;
}
}
private readonly string theme = null!;
public bool Status { get; set; }
public string Description { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public Bet(string id, string title, string name, string theme, bool status, string description, DateTime startDate, DateTime endDate)
{
Id = id;
Title = title;
Name = name;
Choices = new ReadOnlyCollection<String>(choices);
Theme = theme;
Status = status;
Description = description;
StartDate = startDate;
EndDate = endDate;
Users = new ReadOnlyDictionary<User, Mise>(users);
}
}
}

@ -0,0 +1,68 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Group
{
public string Id
{
get => id;
private init
{
if (string.IsNullOrWhiteSpace(value))
{
id = "Unknown";
return;
}
id = value;
}
}
private readonly string id = null!;
public string Name
{
get => name;
set
{
if (value == null)
{
name = "";
return;
}
name = value;
}
}
private string name = "";
public LargeImage Image { get; set; }
public DateTime CreationDate { get; set; }
public Group(string id, string name, DateTime creationDate, string image = "")
{
Id = id;
Name = name;
Image = new LargeImage(image);
CreationDate = creationDate;
}
public override bool Equals(object? obj)
{
if (ReferenceEquals(obj, null)) return false;
if (ReferenceEquals(obj, this)) return true;
if (GetType() != obj.GetType()) return false;
return Equals(obj as Group);
}
public override int GetHashCode()
=> Id.GetHashCode() % 997;
public bool Equals(Group? other)
=> Id.Equals(other?.Id);
}
}

@ -0,0 +1,40 @@
using Shared;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public interface IDataManager
{
IUsersManager UsersMgr { get; }
IBetsManager BetsMgr { get; }
IRunesManager RunesMgr { get; }
}
public interface IUsersManager : IGenericDataManager<User?>
{
Task<int> GetItemByMail(string mail);
Task<int> GetNbItemsByUser(Group? group);
Task<IEnumerable<User?>> GetItemsByGroup(Group? group, int index, int count, string? orderingPropertyName = null, bool descending = false);
Task<int> GetNbItemsByAllCoins(int allCoins);
Task<IEnumerable<User?>> GetItemsByAllCoins(int allCoins, int index, int count, string? orderingPropertyName = null, bool descending = false);
}
public interface IBetsManager : IGenericDataManager<Bet?>
{
Task<int> GetNbItemsByUser(User? user);
Task<IEnumerable<Bet?>> GetItemsByUser(User? user, int index, int count, string? orderingPropertyName = null, bool descending = false);
Task<int> GetNbItemsByDescription(string description);
Task<IEnumerable<Bet?>> GetItemsByDescription(string description, int index, int count, string? orderingPropertyName = null, bool descending = false);
}
public interface IRunesManager : IGenericDataManager<Rune?>
{
}
}

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class LargeImage : IEquatable<LargeImage>
{
public string Base64 { get; set; }
public LargeImage(string base64)
{
Base64 = base64;
}
public bool Equals(LargeImage? other)
=> other != null && other.Base64.Equals(Base64);
public override bool Equals(object? obj)
{
if (ReferenceEquals(obj, null)) return false;
if (ReferenceEquals(obj!, this)) return true;
if (GetType() != obj!.GetType()) return false;
return Equals(obj! as LargeImage);
}
public override int GetHashCode()
=> Base64.Substring(0, 10).GetHashCode();
}
}

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public class Mise
{
public int Cost { get; set; }
public string Choice { get; set; }
public Mise(int cost, string choice)
{
Cost = cost;
Choice = choice;
}
}
}

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

@ -0,0 +1,134 @@
using System.Collections.ObjectModel;
using System.Reflection.PortableExecutable;
using System.Security.Claims;
using System.Text;
using System.Xml.Linq;
using static System.Net.Mime.MediaTypeNames;
namespace Model
{
public class User
{
public string Id
{
get => id;
private init
{
if (string.IsNullOrWhiteSpace(value))
{
id = "Unknown";
return;
}
id = value;
}
}
private readonly string id = null!;
public string Pseudo
{
get => pseudo;
set
{
if (value == null)
{
pseudo = "";
return;
}
pseudo = value;
}
}
private string pseudo = "";
public string Mail
{
get => mail;
set
{
if (value == null)
{
mail = "";
return;
}
mail = value;
}
}
private string mail = "";
public string Password
{
get => password;
set
{
if (value == null)
{
password = "";
return;
}
password = value;
}
}
private string password = "";
public DateTime CreationDate { get; set; }
public LargeImage Image { get; set; }
public int AllCoins { get; set; }
public User(string id, string pseudo, string mail, string password, DateTime date, string image = "", int allCoins = 0)
{
Id = id;
Pseudo = pseudo;
Mail = mail;
Password = password;
Image = new LargeImage(image);
AllCoins = allCoins;
Groups = new ReadOnlyCollection<Group>(groups);
}
public ReadOnlyCollection<Group> Groups { get; private set; }
private List<Group> groups = new();
public bool AddGroup(Group group)
{
if (groups.Contains(group))
return false;
groups.Add(group);
return true;
}
public bool RemoveSkin(Group group)
=> groups.Remove(group);
public override bool Equals(object? obj)
{
if (ReferenceEquals(obj, null)) return false;
if (ReferenceEquals(obj, this)) return true;
if (GetType() != obj.GetType()) return false;
return Equals(obj as User);
}
public override int GetHashCode()
=> Id.GetHashCode() % 997;
public bool Equals(User? other)
=> Id.Equals(other?.Id);
public override string ToString()
{
StringBuilder sb = new StringBuilder($"{Id} ({Mail})");
if (!string.IsNullOrWhiteSpace(Image.Base64))
{
sb.AppendLine($"\t{Image.Base64}");
}
if (Groups.Any())
{
sb.AppendLine("\tGroup:");
foreach (var group in Groups)
{
sb.AppendLine($"\t\t{group.Id} - {group.Name}");
}
}
return sb.ToString();
}
}
}

@ -0,0 +1,68 @@
{
"format": 1,
"restore": {
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\AllIn\\AllIn.csproj": {}
},
"projects": {
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\AllIn\\AllIn.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\AllIn\\AllIn.csproj",
"projectName": "AllIn",
"projectPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\AllIn\\AllIn.csproj",
"packagesPath": "C:\\Users\\emkartal1\\.nuget\\packages\\",
"outputPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\AllIn\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\emkartal1\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
}

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\emkartal1\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\emkartal1\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AllIn")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("AllIn")]
[assembly: System.Reflection.AssemblyTitleAttribute("AllIn")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Généré par la classe MSBuild WriteCodeFragment.

@ -0,0 +1 @@
3e56bfec10a4d0b4bafe990060f47489ae132873

@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = AllIn
build_property.ProjectDir = C:\Users\emkartal1\source\repos\AllIn\AllIn\

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Model")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Model")]
[assembly: System.Reflection.AssemblyTitleAttribute("Model")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Généré par la classe MSBuild WriteCodeFragment.

@ -0,0 +1 @@
4a8dbeadcd9b0f1c9e3d60538b31bdeebd5df202

@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Model
build_property.ProjectDir = C:\Users\emkartal1\source\repos\AllIn\Model\

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

@ -0,0 +1,5 @@
C:\Users\emkartal1\source\repos\AllIn\Model\obj\Debug\net6.0\Model.csproj.AssemblyReference.cache
C:\Users\emkartal1\source\repos\AllIn\Model\obj\Debug\net6.0\Model.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\emkartal1\source\repos\AllIn\Model\obj\Debug\net6.0\Model.AssemblyInfoInputs.cache
C:\Users\emkartal1\source\repos\AllIn\Model\obj\Debug\net6.0\Model.AssemblyInfo.cs
C:\Users\emkartal1\source\repos\AllIn\Model\obj\Debug\net6.0\Model.csproj.CoreCompileInputs.cache

@ -0,0 +1,132 @@
{
"format": 1,
"restore": {
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\Model.csproj": {}
},
"projects": {
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\Model.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\Model.csproj",
"projectName": "Model",
"projectPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\Model.csproj",
"packagesPath": "C:\\Users\\emkartal1\\.nuget\\packages\\",
"outputPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\emkartal1\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj": {
"projectPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj",
"projectName": "Shared",
"projectPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj",
"packagesPath": "C:\\Users\\emkartal1\\.nuget\\packages\\",
"outputPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\emkartal1\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
}

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\emkartal1\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\emkartal1\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

@ -0,0 +1,97 @@
{
"version": 3,
"targets": {
"net6.0": {
"Shared/1.0.0": {
"type": "project",
"framework": ".NETCoreApp,Version=v6.0",
"compile": {
"bin/placeholder/Shared.dll": {}
},
"runtime": {
"bin/placeholder/Shared.dll": {}
}
}
}
},
"libraries": {
"Shared/1.0.0": {
"type": "project",
"path": "../Shared/Shared.csproj",
"msbuildProject": "../Shared/Shared.csproj"
}
},
"projectFileDependencyGroups": {
"net6.0": [
"Shared >= 1.0.0"
]
},
"packageFolders": {
"C:\\Users\\emkartal1\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\Model.csproj",
"projectName": "Model",
"projectPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\Model.csproj",
"packagesPath": "C:\\Users\\emkartal1\\.nuget\\packages\\",
"outputPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\emkartal1\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj": {
"projectPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "xnMFe/OjtOiEYoTpPdV9ZjWDk1iuGPFnFfQChrL+4wi/MZ3sPxScTxpqEltfuoo/hFnhdLNHxK7bnT73qP027A==",
"success": true,
"projectFilePath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Model\\Model.csproj",
"expectedPackageFiles": [],
"logs": []
}

@ -0,0 +1,12 @@
namespace Shared;
public interface IGenericDataManager<T>
{
Task<int> GetNbItems();
Task<IEnumerable<T>> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false);
Task<int> GetNbItemsByName(string substring);
Task<IEnumerable<T>> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false);
Task<IEnumerable<T>> GetItemByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false);
Task<T> UpdateItem(T oldItem, T newItem);
Task<T> AddItem(T item);
Task<bool> DeleteItem(T item);
}

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Shared")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Shared")]
[assembly: System.Reflection.AssemblyTitleAttribute("Shared")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Généré par la classe MSBuild WriteCodeFragment.

@ -0,0 +1 @@
e5d71b5acf0dfcbe29395b5fa622ad07a767f235

@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Shared
build_property.ProjectDir = C:\Users\emkartal1\source\repos\AllIn\Shared\

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

@ -0,0 +1,68 @@
{
"format": 1,
"restore": {
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj": {}
},
"projects": {
"C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj",
"projectName": "Shared",
"projectPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj",
"packagesPath": "C:\\Users\\emkartal1\\.nuget\\packages\\",
"outputPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\emkartal1\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}
}

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\emkartal1\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\emkartal1\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
</Project>

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

@ -0,0 +1,74 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\emkartal1\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj",
"projectName": "Shared",
"projectPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj",
"packagesPath": "C:\\Users\\emkartal1\\.nuget\\packages\\",
"outputPath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\emkartal1\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Program Files\\dotnet\\library-packs": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"
}
}
}
}

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "o/aldcZ9crBrQeBu6yXTK3nxB9MXXNa50pQDyoGmxzGVlnYd0Q27WJbgQfh7B6iJznNEFMbf1eIT+C24KZZPCA==",
"success": true,
"projectFilePath": "C:\\Users\\emkartal1\\source\\repos\\AllIn\\Shared\\Shared.csproj",
"expectedPackageFiles": [],
"logs": []
}
Loading…
Cancel
Save